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

pixi global upgrade only takes a single channel into account #1318

Closed
2 tasks done
pavelzw opened this issue May 2, 2024 · 2 comments · Fixed by #1326
Closed
2 tasks done

pixi global upgrade only takes a single channel into account #1318

pavelzw opened this issue May 2, 2024 · 2 comments · Fixed by #1326
Labels
bug Something isn't working

Comments

@pavelzw
Copy link
Contributor

pavelzw commented May 2, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

default_channels = ["conda-forge", "https://my.quetz/get/private-channel"]

Issue description

$ pixi global install private-package
<checks all channels>
✔ Installed package private-package 0.13.0 pyh4616a5c_0 from get/private-channel
$ pixi global upgrade private-package
<only checks private-channel, not conda-forge>
  × Cannot solve the request because of: private-package * cannot be installed because there are no viable options:
  │ └─ private-package 0.0.2 | 0.1.0 | 0.1.1 | 0.1.2 | 0.2.0 | 0.3.0 | 0.4.0 | 0.4.2 | 0.4.3 | 0.4.4 | 0.4.5 | 0.4.6 | 0.4.7 | 0.4.8 | 0.5.0 | 0.6.0 | 0.7.0 | 0.8.0 | 0.9.0 | 0.10.0 | 0.11.0 | 0.12.0 |
  │ 0.12.1 | 0.12.2 | 0.13.0 would require
  │    └─ python >=3.8, for which no candidates were found.

Expected behavior

pixi should either check all channels that are defined in config.toml or check all channels that were used to check initially.

@pavelzw pavelzw added the bug Something isn't working label May 2, 2024
@chawyehsu
Copy link
Contributor

It will only use the channel where you installed the package, otherwise something like #943 (comment) would happen.

@pavelzw
Copy link
Contributor Author

pavelzw commented May 2, 2024

I don't plan on hosting dependencies like python on my private channels but only my tools. So IMO it should search both channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants