Skip to content

feat: add --dry-run to lock cli command #5280

@johnnyg

Description

@johnnyg

Problem description

Problem

We would like a way to show the difference (if any) between what the manifest (pixi.toml) has vs what our environment has without actually updating either the environment or the lock file.
Right now we can achieve this (or at least I think so) by doing the following:

cp pixi.lock pixi.lock.bak
pixi lock --json --no-install > diff.json
mv pixi.lock.bak pixi.lock

Proposal

Adding a --dry-run option to pixi lock would allow us to achieve this goal (it would also imply --no-install) by simply running:

pixi lock --json --dry-run > diff.json

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions