CEP idea: env name metadata

Open
#67 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
cli, tooling

Research direction

Start with the CEP text and the proposed conda-meta/env-name location, then trace the CLI environment-name and shell-prompt behavior it discusses. Done means the proposal resolves how the metadata is parsed and how names should behave for conda-build, pixi, conda-store, and path-unfriendly names.

Written by the indexing model from the issue text.

Description

enhancement

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.

Dominant language
No language data
Stars
35
Forks
43
Avg merge
2h 11m
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from conda/ceps

All issues in conda/ceps

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.