-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat: add pinning strategy to the configuration #1516
Conversation
Looks good at first glance. |
@Hofer-Julian it should now implement this. In another pr we can also add it to the cli. I was thinking this might also be a project specific configuration setting. so maybe adding it to the manifest aswell? 🤔 |
Awesome, thanks @ruben-arts! |
Cant you already have a pixi config local to the project? Similar to a .cargo/config.toml? |
Yes that is possible, was just a braindump as it might be a conflict prone file. But might not be that bad. |
I actually wasn't aware of that one. In that case I'd prefer the config :) |
Would by nice if you can also have a |
@baszalmstra, yes!, I would like to merge this first |
Improve UX for users that want a different pinning strategy in
pixi add
.With this pr users can set the strategy they want:
semver
:1.2.3
->>=1.2.3, <2
and0.1.0
->>=0.1.0, <0.2
and0.0.0
->>=0.0.0, <0.0.1
no-pin
:1.2.3
->*
exact-version
:1.2.3
->==1.2.3
minor
:1.2.3
->>=1.2.3, <1.3
major
:1.2.3
->>=1.2.3, <2
latest-up
:1.2.3
->>=1.2.3
Users can set it using
pixi config set pinning-strategy no-pin
.The
pixi add
will show what it added to the toml file:Closes #1562