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

Feature Request: Support CONDA_CHANNELS to set conda channels #122

Open
schlichtanders opened this issue Nov 24, 2023 · 1 comment
Open

Comments

@schlichtanders
Copy link

schlichtanders commented Nov 24, 2023

I need to use a local channel to fix some packages, however the need to add it to every single CondaPkt.toml makes the environment less movable to other machines.
It would be much simpler if I could set CONDA_CHANNELS to the list of channels and use that.

I tried to set CONDA_CHANNELS, but it is just ignored and still defaults to conda-forge.

EDIT: I think this is just due to --override-channels flag being set, otherwise the CONDA_CHANNELS would get picked up I guess.

@cjdoris
Copy link
Collaborator

cjdoris commented Nov 29, 2023

I've been wondering about ways to allow the user to modify the channels used (e.g. specifying the priority, or a whitelist or blacklist).

The --override-channels flag is there to ensure only the channels specified in CondaPkg.toml are used. For your case, would it be sufficient to have a setting to disable this flag? Can you try it yourself?

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

No branches or pull requests

2 participants