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
What happens with relative pathes? #163
Comments
Hi @mehcode any thoughts on this? |
I'm still interested in this. |
Hi. This gets more and more relevant for me. I'm thinking about implementing it myself for this library, if it is okay with you to include such a change. I have to talk to my employer first, though, whether I can implement this on company time. |
You could try contacting the other maintainers mentioned here: #149 (comment) |
Yeah, I'll do that. |
So, as the crate does not necessarily know about I'll close this now. |
Hi.
I have a question about relative pathes in layered configuration. For example if I have the following structure:
And I layer my configuration objects via the nesting, so I get two configuration objects:
root.toml + foo.toml + bar.toml
root.toml + baz.toml
Where do I end up with a
path = ./somefile.txt
inbaz.toml
? ThePathBuf
deserialized does not point to the right file, does it?And I cannot find it after deserializing the objects because
foo/bar/somefile.txt
would be found first, which is obviously wrongIs there a strategy to handle such cases? Is there a way to make
config-rs
handle relative pathes?I think it is in the scope of this crate and would love to see such a feature, even contribute code for it.
The text was updated successfully, but these errors were encountered: