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

[ENH] - Have conda store environments in user namespace not show up with username prefix #2860

Open
Adam-D-Lewis opened this issue Nov 21, 2024 · 2 comments

Comments

@Adam-D-Lewis
Copy link
Member

Feature description

conda env list results in something like the following
image

I'd prefer the env names in the user namespace not have a username prefix.

# conda environments:
#
new                      /home/[email protected]/.conda/envs/new
admin-climatology        /home/conda/admin/envs/admin-climatology
allm                    /home/conda/[email protected]/envs/[email protected]
dash                    /home/conda/[email protected]/envs/[email protected]
embeddings              /home/conda/[email protected]/envs/[email protected]
excelpy                 /home/conda/[email protected]/envs/[email protected]
falcon                  /home/conda/[email protected]/envs/[email protected]
lc                      /home/conda/[email protected]/envs/[email protected]
mem1                    /home/conda/[email protected]/envs/[email protected]
mem2                    /home/conda/[email protected]/envs/[email protected]
mem3                    /home/conda/[email protected]/envs/[email protected]
memory                  /home/conda/[email protected]/envs/[email protected]
panel                   /home/conda/[email protected]/envs/[email protected]
pmill                   /home/conda/[email protected]/envs/[email protected]
r                       /home/conda/[email protected]/envs/[email protected]
scratch                 /home/conda/[email protected]/envs/[email protected]
scratch2                /home/conda/[email protected]/envs/[email protected]
sec                     /home/conda/[email protected]/envs/[email protected]
test                    /home/conda/[email protected]/envs/[email protected]
trees                   /home/conda/[email protected]/envs/[email protected]
analyst-bio-data              /home/conda/analyst/envs/analyst-bio-data
analyst-dashboard-papermill    /home/conda/analyst/envs/analyst-dashboard-papermill

I could foresee a few issues.

  • If a user makes an env called analyst-myenv it would clash with a myenv environment name in the analyst namespace.

How to implement

I'm not sure how best to implement this. It doesn't seem straight forward. Maybe symlinks have a role here?

Value and/or benefit

Better UX for user environments

Anything else?

No response

@dharhas
Copy link
Member

dharhas commented Dec 18, 2024

This is currently a limitation of conda, since conda doesn't have namespaces and not including the username means that you can have name clashes with other peoples environments since all the environments are on a shared drive. This used to happen and whoever created the environment (say data-science) last would have precedence

There is probably a way to build a workaround. Maybe using the custom env-dirs based on the username. This might also require changes in conda-store. This probably intersects with how conda-store should name envs and namespaces for the standalone use case as well. cc: @soapy1

@soapy1
Copy link

soapy1 commented Dec 18, 2024

Oh ya, this seems like a conda-store issue to me. Feel free to drop an issue in conda-incubator/conda-store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New 🚦
Development

No branches or pull requests

3 participants