Skip to content

ci(release-plz): refresh lens/Cargo.lock on the release PR - #34

Merged
h4x0r merged 1 commit into
mainfrom
fix/lens-lock-freshness-on-release
Sep 15, 2026
Merged

h4x0r merged 1 commit into
mainfrom
fix/lens-lock-freshness-on-release

Conversation

@h4x0r

@h4x0r h4x0r commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Fixes the recurring freshness break on every timeglyph release.

Cause: release-plz regenerates only the root workspace lock. lens/ is a separate workspace (excluded because it's Windows-only) with its own committed Cargo.lock, so after each version bump it still pins the previous timeglyph path-dep version — and the freshness gate's cargo update --locked --manifest-path lens/Cargo.toml fails (as it did on 0.9.8, #30, which needed a manual lock refresh to merge).

Fix: a release-plz-pr post-step that refreshes lens/Cargo.lock on the same release PR branch whenever a release PR exists (created or updated). It's the automated form of the manual fix that unblocked #30.

  • lens is not published, so this touches no cargo-vet attestations (unlike a root-lock refresh, which does).
  • Guarded: exits cleanly if there's no release PR branch; commits only when the lock actually changes.
  • wasm/bindings-python/fuzz keep no committed lock, so freshness doesn't gate them — no handling needed.

Note (separate, pre-existing): the lens lock still drifts on third-party deps between releases; that general lock-drift is Renovate lockFileMaintenance territory, not this PR.

🤖 Generated with Claude Code

Stop the freshness gate from breaking on every timeglyph release. release-plz
regenerates only the root workspace lock; `lens/` is a separate workspace
(excluded because it is Windows-only) with its own committed Cargo.lock, so
after each version bump it still pins the previous `timeglyph` path-dep version
and the freshness job's `cargo update --locked --manifest-path lens/Cargo.toml`
fails (as it did on 0.9.8, #30). Add a release-plz-pr post-step that refreshes
lens/Cargo.lock on the same release PR branch whenever a release PR exists.

lens is not published, so this touches no cargo-vet attestations. The step is
guarded (exits cleanly if there is no release PR branch) and only commits when
the lock actually changes. wasm/bindings-python/fuzz keep no committed lock, so
freshness does not gate them and they need no handling.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@h4x0r
h4x0r merged commit a096da0 into main Sep 15, 2026
27 of 28 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.

1 participant