Skip to content

Fail CI if uv.lock is out of sync with pyproject.toml (#25)#50

Merged
lukpueh merged 1 commit into
eclipse-csi:mainfrom
lukpueh:check-uv-sync
Jun 16, 2026
Merged

Fail CI if uv.lock is out of sync with pyproject.toml (#25)#50
lukpueh merged 1 commit into
eclipse-csi:mainfrom
lukpueh:check-uv-sync

Conversation

@lukpueh

@lukpueh lukpueh commented May 28, 2026

Copy link
Copy Markdown
Contributor

Add --locked to the existing uv sync install step. The flag asserts that uv.lock would remain unchanged by the sync; if pyproject.toml has been modified without a corresponding lock regeneration, the step exits non-zero before any other uv command runs, so nothing can silently auto-sync the lock and mask the drift.

fixes #25

Add `--locked` to the existing `uv sync` install step. The flag asserts
that `uv.lock` would remain unchanged by the sync; if pyproject.toml has
been modified without a corresponding lock regeneration, the step exits
non-zero before any other `uv` command runs, so nothing can silently
auto-sync the lock and mask the drift.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
@lukpueh lukpueh merged commit aca81ad into eclipse-csi:main Jun 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Block PRs if uv.lock is not up-to-date

2 participants