Skip to content

git rattler-build dependencies force constant updates of pixi.lock #5175

@crusaderky

Description

@crusaderky

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

pixi 0.62.1

[workspace]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64"]
preview = ["pixi-build"]

[dependencies]
python.git = "https://github.com/python/cpython"
python.subdirectory = "Tools/pixi-packages/default"

Issue description

A pixi-build-rattler-build dependency causes pixi to update the pixi.lock every time one enters the shell or runs a task. This is time-consuming.
prefix-dev/setup-pixi@v0 with the default locked: true crashes with lock-file not up-to-date with the workspace.

Adding python.rev = "main" doesn't work around it.
Adding python.rev = <specific git hash> doesn't either.

Expected behavior

git dependencies should remain frozen to whatever hash they were pointing to as of the latest explicit pixi update, unless the rev parameter was changed in pixi.toml.
In other words one would expect rev to work just like version for conda and pip dependencies.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions