feat: add --as-is as a shorthand for --no-install --frozen#4357
Merged
ruben-arts merged 4 commits intoprefix-dev:mainfrom Aug 15, 2025
Merged
feat: add --as-is as a shorthand for --no-install --frozen#4357ruben-arts merged 4 commits intoprefix-dev:mainfrom
--as-is as a shorthand for --no-install --frozen#4357ruben-arts merged 4 commits intoprefix-dev:mainfrom
Conversation
cbdcedb to
7d6237b
Compare
ruben-arts
requested changes
Aug 15, 2025
Contributor
ruben-arts
left a comment
There was a problem hiding this comment.
One small request, but works and looks good!
Co-authored-by: Ruben Arts <ruben@prefix.dev>
ruben-arts
approved these changes
Aug 15, 2025
Contributor
ruben-arts
left a comment
There was a problem hiding this comment.
I'm going to use this daily! 🙏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is dependent on #4322, that should be merged first. This PR adds the
--as-isflag to therun,shell,shell-hookcommands. Because of #4322 this should basically serve as an alias for--frozen --no-install. There does not seem to be a really good clap way of doing this, so I decided to basically use a new struct that is used in the command that includes the structs that we already use.So now you can do
pixi run --as-is pythonand it will just execute that in the prefix w/o doing any locking and updating. I feel this is pretty ergonomic.I've decided to only add the alias to a couple of commands, basically because it feels strange to me that you can do
pixi workspace channel add --as-is bioconda. But I'd be happy to add it there if you feel differently.Testing
I basically tested the thing by hand, and there are some unit tests that check if the aliasing works as expected.