You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add channels to your pixi.toml file it invalidates the entire lockfile. I think the rationale behind this is that adding channels might completely change how the environment would resolve. I wonder if the logic that pixi uses can be more subtle than this.
The workaround today is to manually edit the lockfile to add the channel first, and then pixi will be tricked into thinking it was already present in the prior solve.
Expected behavior
In this repro I think the crane version should not change.
The text was updated successfully, but these errors were encountered:
benmoss
changed the title
Don't invalidate lockfile when adding a channel
Lockfile is invalidated when a channel is added
Nov 13, 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
https://github.com/benmoss/lockfile_update_repro
Issue description
If you add channels to your
pixi.toml
file it invalidates the entire lockfile. I think the rationale behind this is that adding channels might completely change how the environment would resolve. I wonder if the logic that pixi uses can be more subtle than this.The workaround today is to manually edit the lockfile to add the channel first, and then pixi will be tricked into thinking it was already present in the prior solve.
Expected behavior
In this repro I think the crane version should not change.
The text was updated successfully, but these errors were encountered: