-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to remove file extension and remove filename #56
Comments
+1 |
+1 |
what should happen when we have more than one file in the expand key mode? they will be merged? |
I have added pull request #84 to solve this case. |
I think this is working great for me, with one caveat. When ignore_file_extension is turned on:
Anyone else confirm this? I can work around both, but thought they were worth pointing out. |
@gjonespf extension removal operation is applied on file names only. Let say that, you have |
@huseyinbabal will have to retest, as the testcase I just trialled seems to support what you're saying regarding folders. Files without an extension are definitely not read once you turn on the flag, however - and pretty sure they were previously. Example project: |
@gjonespf actually, you have found a possible bug 😄 When you look at here you will see the logic of ignoring file extensions. However, for this project, always file extensions are expected (when I look at test cases in test folder). Project owner or this community maynot accept handling files without extensions. I have suggested a feature before, and they are rejected with meaningful reasons although it is a good feature. To sum up, If everybody is ok for adding exception for files without extensions, we are good to go. Thanks for pointing out 😄 |
@huseyinbabal hah, I think I see the issue 😄 If I get time, I'll have to test out a fix. But yeah, not a problem for me as I can work around, but thought I'd mention it. It's something that was actually working previously, so may be worth documenting that extensions are always expected. The PR you've linked is a different thing again, but agree it's a good feature, though hard to simplify/make work without config (which is how I'd suggest it needs to work). |
So is the documentation wrong? I see the "ignore_file_extension" is listed as an available config. But when I set it to true, the file name is not getting ignored. Fyi, I'm running git2consul as a docker container. [cimpress/git2consul:latest] |
@dtmistry it's certainly working for me, and I'm using it in a container also (though I'm using a custom build for https://github.com/gjonespf/docker-proxy-test). The KV folder names have the extensions removed - this is what you're expecting? |
@gjonespf Yeah I think its the docker image I'm using for git2consul. I see your image using the version 0.12.12. I'll switch to that and test |
Just wanted to chime in on this. docker-git2consul is built against 0.12.10. I'll get it updated, but feel free to use @gjonespf's image to get you unblocked :) |
@dtmistry the Docker image has been updated to 0.12.12 (latest). 0.12.11 is also available if you do need that for any reason. |
Some good options would be the possibility in the configuration to:
Will end up in
and not
Will end up in
and not
Thanks!
The text was updated successfully, but these errors were encountered: