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 mechanism to control wether global files ~/.conda/environments.txt are written to or not #2783

Open
2 tasks done
wolfv opened this issue Aug 25, 2023 · 5 comments · Fixed by #2802
Open
2 tasks done

Comments

@wolfv
Copy link
Member

wolfv commented Aug 25, 2023

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

How did you install Mamba?

Micromamba

Search tried in issue tracker

NA

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not applicable

Describe your issue

micromamba notes down all environments in the ~/.conda/environments.txt global file.

Some people that use micromamba more programatically do not like that it writes to a global file. We could add a boolean variable to the configuration that controls this behavior and prevents micromamba from writing to this file.

mamba info / micromamba info

No response

Logs

No response

environment.yml

No response

~/.condarc

No response

@mfansler
Copy link

This would be nice!

Not micromamba-specific, but I literally have code in my .bashrc to scrub environments.txt of what should otherwise be hidden environments (e.g., Snakemake environments). It would be helpful if we could be more deliberate about what we want exposed to the interactive user via environments.txt.

@jaimergp
Copy link
Contributor

Check conda/conda#12924. I think we can agree on the same context key (register_envs) to avoid duplication.

@jaimergp
Copy link
Contributor

Added #2802

@wolfv
Copy link
Member Author

wolfv commented Sep 1, 2023

@jaimergp I think we still need to wire this up to CLI / config file reading etc., right?

@jaimergp
Copy link
Contributor

jaimergp commented Sep 1, 2023

No clue. In conda adding it to the context object exposes it in the config file and the env var, and I didn't add it as a CLI flag. I am guessing now that it's not that magic here in mambaland so let me know what needs to be done and I'll try my best 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants