Detect pyproject.toml changes and regenerate pixi.lock
Ensure pixi.lock stays in sync with pyproject.toml after dependency changes.
Run this skill after modifying any dependency-related sections in pyproject.toml:
[project.dependencies][project.optional-dependencies][tool.pixi.dependencies][tool.pixi.feature.*.dependencies]Check for pyproject.toml changes by running:
git diff --name-only HEAD -- pyproject.toml
If no changes, also check unstaged:
git diff --name-only -- pyproject.toml
If pyproject.toml was modified, run:
pixi install
This regenerates pixi.lock from the updated dependencies.
Verify the lock file was updated:
git diff --stat -- pixi.lock
Stage both files together:
git add pyproject.toml pixi.lock
Report what changed: which dependencies were added/removed/updated and confirm the lock file is in sync.
pixi install after any pyproject.toml dependency changepixi.lock alongside pyproject.toml in the same commitpixi.lock directly — it is generated by pixi installlocked: true in setup-pixi and will fail if the lock file is stale