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

allow specifying priority in pixi project channel add #2035

Closed
minrk opened this issue Sep 11, 2024 · 1 comment · Fixed by #2086
Closed

allow specifying priority in pixi project channel add #2035

minrk opened this issue Sep 11, 2024 · 1 comment · Fixed by #2086
Labels
✨ enhancement Feature request 🗒️ configuration Issue related to configuration of project or global behavior 👋 good first issue Good for newcomers 👩‍💻 cli Issue related to CLI

Comments

@minrk
Copy link
Contributor

minrk commented Sep 11, 2024

Problem description

Since channel order/priority matters, it would be nice if pixi project channel add CHANNEL could specify the priority of the channel being added.

The following would work:

pixi project channel add [--priority N] CHANNEL

to generate the toml:

channels = ["conda-forge", {channel = "CHANNEL", priority = N}]

To compare, conda config --add channels CHANNEL adds the channel as top priority by default, and conda config --append channels CHANNEL adds at lowest priority. pixi project channel add only does the latter, not matching my expectations coming from conda. Conda's default is also more often what I want, since one of the main reasons I use channels other than conda-forge is to test out builds of packages not yet on conda-forge in a custom label. This can't be set up easily without manual edits of the toml file.

@minrk minrk added the ✨ enhancement Feature request label Sep 11, 2024
@ruben-arts
Copy link
Contributor

Good idea, PR's are welcome!

@ruben-arts ruben-arts added 👋 good first issue Good for newcomers 👩‍💻 cli Issue related to CLI 🗒️ configuration Issue related to configuration of project or global behavior labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Feature request 🗒️ configuration Issue related to configuration of project or global behavior 👋 good first issue Good for newcomers 👩‍💻 cli Issue related to CLI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants