pixi add
and pixi upgrade
uses wrong pinning strategy in some cases
#2574
Labels
pixi add
and pixi upgrade
uses wrong pinning strategy in some cases
#2574
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
Output:
Issue description
When adding/upgrading packages, encountering any packages in
NON_SEMVER_PACKAGES
causes the rest of the packages to use the minor pinning strategy.I believe this was introduced in #2310 as the
pinning_strategy
is set for future iterations of the loop when any packages inNON_SEMVER_PACKAGES
are encountered. Notably, this only happens when the pinning strategy is unset, so one mitigation is to setpinning-strategy: "semver"
in the Pixi configuration file (although this has the side-effect of forcingNON_SEMVER_PACKAGES
to be pinned to their major version).Expected behavior
Expected output:
The text was updated successfully, but these errors were encountered: