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

fix: config search order #2702

Merged
merged 5 commits into from
Dec 13, 2024

Conversation

Hofer-Julian
Copy link
Contributor

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

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
@Hofer-Julian Hofer-Julian force-pushed the fix/config-search-order branch from 93d6c98 to 87f420c Compare December 12, 2024 16:54
@Hofer-Julian Hofer-Julian marked this pull request as ready for review December 12, 2024 16:59
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 {
Copy link
Contributor

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()

Hofer-Julian added a commit to Hofer-Julian/rattler that referenced this pull request Dec 13, 2024
Copy link
Contributor

@ruben-arts ruben-arts left a 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!

@ruben-arts ruben-arts merged commit 11624e7 into prefix-dev:main Dec 13, 2024
22 checks passed
@Hofer-Julian Hofer-Julian deleted the fix/config-search-order branch December 13, 2024 14:09
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.

2 participants