Lock file and Environment update and installation flags. #1707
Replies: 5 comments 10 replies
-
Can you maybe clarify what you mean with?
Does that mean that it does install what was verified (so like a subset of packages or something), or does not verify and install anything, which sounds like a no-op to me? |
Beta Was this translation helpful? Give feedback.
-
@ruben-arts , I wouldn’t see any problem with replacing My doubt / question relates to replacing that flag with the combination |
Beta Was this translation helpful? Give feedback.
-
@ruben-arts a tangent remark: I don’t find the difference between I think maybe keeping a single of those and having an additional |
Beta Was this translation helpful? Give feedback.
-
I personally never had understanding what the different CLI flags meant. I would like to keep I find |
Beta Was this translation helpful? Give feedback.
-
Regarding "Is the current default behavior appropriate?" it wouldn't have been my choice to run these checks, etc. on almost every pixi command. For me, these basically add delays (albeit small) and distractions (i.e. irrelevant animated command output) during my use of pixi. I would not suggest changing the defaults, as this would be a compatibility break. I would though find it helpful if there was a simple project-level way to configure whether these checks, updates, etc. are invoked by default. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current default behavior of almost all
pixi
commands is to validate/update the lock file and the environment affected by the command. For example:add
,remove
modify the manifest (pixi.toml
/pyproject.toml
)pixi.lock
).pixi/envs
)However, in some cases, especially in CI, the last two behaviors can be undesirable. To address this, we've added these flags:
--no-lockfile-update
: Don't check the lockfile and thus don't install what can't be verified.--frozen
: Skip the validation and update of the lock file.--no-install
: Skip the installation or update of the environment.After discussing with @olivier-lacroix, we realized we had different understandings of the flag names. So, I'm seeking more input.
Questions:
I'm looking for good ideas the community can agree on! 🫂
Related:
My current answers:
--no-lockfile-update
and would prefer something more specific like--only-manifest
. Alternatively, using--frozen --no-install
together could tellpixi
not to check the lock file and not install the environment.--no-lockfile-update
flag.Beta Was this translation helpful? Give feedback.
All reactions