Skip to content
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

Add setter for setting config value once #172

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

matthiasbeyer
Copy link
Member

This PR supersedes #165 .

I was able to implement the functionality I've described in #163 using this function (fixup of relative pathes during loading of configuration data) with this PR.

The advantage of this PR over #165 is that this PR does not need to export internal types, thus it is better than #165.

matthiasbeyer pushed a commit to science-computing/butido that referenced this pull request Mar 10, 2021
This patch rewrites patch post-processing with a new setter in the config-rs
crate:

    Config::set_once()

That is introduced on a PR I've written for the crate.
The PR: rust-cli/config-rs#172

The new function is more likely to land on the config-rs master branch than the
old one, as it does not introduce more exported types from the config-rs crate.

Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Tested-by: Matthias Beyer <matthias.beyer@atos.net>
@matthiasbeyer
Copy link
Member Author

This is merged in config-rs-maint as of master 05b04b8a9982154b1f0755c0b4e0eb2cb3d88235.

@matthiasbeyer
Copy link
Member Author

Waiting for #175

…::merge() overwrite it later

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant