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

CEP idea: env name metadata #67

Open
jaimergp opened this issue Mar 28, 2024 · 1 comment
Open

CEP idea: env name metadata #67

jaimergp opened this issue Mar 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jaimergp
Copy link
Contributor

conda takes the directory name as the name of the environment too. This is used for CLI (conda activate xyz) and UX (the (xyz) prompt in the shell). This proposal would add a magic file under conda-meta/ that proposes a name different that the environment directory.

Why is this needed or useful?

  • conda-build temporary environments could be renamed underneath for better UX (e.g. the name of the package being built)
  • pixi envs could be rendered as the project name instead of (.pixi/env).
  • conda-store environments (which are named with hashes to implement atomic updates and rollbacks) could have a user-friendly name.
  • Environment names could use spaces and other characters that are usually not very path friendly.

The idea would be very simple. If a conda-meta/env-name is present, parse the file contents and use that as the name.

@jaimergp jaimergp added the enhancement New feature or request label Mar 28, 2024
@chenghlee
Copy link

Another useful outcome: changing your conda envs_dirs configuration setting doesn't suddenly cause existing environment prefixes go from named -> unnamed (or vice versa).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants