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 downgrades packages to newest version in default channels #943

Closed
2 tasks done
freundTech opened this issue Mar 9, 2024 · 4 comments · Fixed by #948
Closed
2 tasks done

pixi global upgrade downgrades packages to newest version in default channels #943

freundTech opened this issue Mar 9, 2024 · 4 comments · Fixed by #948
Labels
🐞 bug Something isn't working 👋 good first issue Good for newcomers

Comments

@freundTech
Copy link

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

pixi global install -c conda-forge/label/typst_rc -c conda-forge typst
typst --version  # typst 0.11.0-rc1 (667ea26a)
pixi global upgrade typst  # or upgrade-all
typst --version  # typst 0.10.0 (08adea17)

Issue description

pixi global upgrade sometimes downgrades packages.
If a newer version is installed from a non-default (manually passed) channel, running pixi global upgrade will downgrade the package to the newest version available in the default channel.

Expected behavior

pixi global upgrade should never downgrade a package. It should keep the currently installed version.

@freundTech freundTech added the 🐞 bug Something isn't working label Mar 9, 2024
@freundTech freundTech changed the title pixi global upgrade downgrades packages to newest version default channels pixi global upgrade downgrades packages to newest version in default channels Mar 10, 2024
@pavelzw
Copy link
Contributor

pavelzw commented Mar 10, 2024

Same problem:

$ pixi global install my-private-tool -c https://my.quetz/get/my-channel -c conda-forge
✔ Installed package my-private-tool 0.12.1 pyh4616a5c_0 from get/my-channel
  These executables are now globally available:
   -  my-private-tool
$ pixi global upgrade my-private-tool
  × Cannot solve the request because of: No candidates were found for my-private-tool *.
  │
$ pixi global upgrade my-private-tool -c https://my.quetz/get/my-channel -c conda-forge
Package my-private-tool is already up-to-date

pixi should persist which channels were used when first installing

@ruben-arts
Copy link
Contributor

Yeah that makes sense, it should both only update if its a higher version and use the same channel by default!

@ruben-arts ruben-arts added the 👋 good first issue Good for newcomers label Mar 10, 2024
@pavelzw
Copy link
Contributor

pavelzw commented Mar 10, 2024

pixi global upgrade -c conda-forge/label/typst_rc -c conda-forge typst works btw

@chawyehsu
Copy link
Contributor

This can be improved combining with #914 , I am working on decoupling functions in the globalcli component to address these two issues.

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

Successfully merging a pull request may close this issue.

4 participants