-
Notifications
You must be signed in to change notification settings - Fork 210
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
fix: config search order #2702
fix: config search order #2702
Conversation
This fixes three problems: - the config order was wrong, global config was for some cases winning over local - move config file of tmp_pixi_workspace to correct folder - add a config reset for all tests so that our test run with a clean config
93d6c98
to
87f420c
Compare
pub fn merge_config(mut self, other: Config) -> Self { | ||
self.mirrors.extend(other.mirrors); | ||
self.loaded_from.extend(other.loaded_from); | ||
pub fn merge_config(self, mut other: Config) -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just flips all logic. Please make sure the logic stays correct over all calls. I'm assuming the only change required is in load()
That is needed for prefix-dev/pixi#2702
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for figuring this out!
This fixes three problems: