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

MAMBA_ROOT_PREFIX has precedence over -r option #3806

Open
holzman opened this issue Feb 5, 2025 · 1 comment · May be fixed by #3813
Open

MAMBA_ROOT_PREFIX has precedence over -r option #3806

holzman opened this issue Feb 5, 2025 · 1 comment · May be fixed by #3813
Labels
type::bug Something isn't working

Comments

@holzman
Copy link

holzman commented Feb 5, 2025

This issue was introduced by #3692:

In 2.0.5, -r took precedence over MAMBA_ROOT_PREFIX:

$ export MAMBA_ROOT_PREFIX=/tmp/envroot
$ mamba create  --debug -n foo --print-config-only | yq '. | .envs_dirs'
[
  "/tmp/envroot/envs"
]

$ mamba create -r /tmp/cliroot --debug -n foo --print-config-only | yq '. | .envs_dirs'
[
  "/tmp/cliroot/envs"
]

but in 2.0.6:

$ mamba create -r /tmp/cliroot --debug -n foo --print-config-only | yq '. | .envs_dirs'
[
  "/tmp/envroot/envs",
  "/tmp/cliroot/envs"
]

Note that this only matters when /tmp/envroot/envs already exists.

Originally posted by @holzman in #3796 (comment)

@holzman
Copy link
Author

holzman commented Feb 5, 2025

I added a parameter in a test case for this:

holzman@e7d1398

@jjerphan jjerphan added release::bug_fixes For PRs fixing bugs type::bug Something isn't working and removed release::bug_fixes For PRs fixing bugs labels Feb 6, 2025
@holzman holzman linked a pull request Feb 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants