Skip to content

chore(release): add Cargo.lock updater to release-please config - #169

Merged
sunerpy merged 1 commit into
mainfrom
chore/release-please-lock-updater
Jul 24, 2026
Merged

sunerpy merged 1 commit into
mainfrom
chore/release-please-lock-updater

Conversation

@sunerpy

@sunerpy sunerpy commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a Cargo.lock GenericToml updater to release-please-config.json so every release PR bumps the 10 source-less workspace packages in Cargo.lock alongside Cargo.toml/version.txt.
  • Root cause: release commits bumped the workspace version but left Cargo.lock's local packages behind, drifting the lockfile every release (observed at 0.40.1 → 0.40.2, would recur at 0.40.3).

Change

  • extra-files gains:
    { "type": "toml", "path": "Cargo.lock", "jsonpath": "$.package[?(!@.source)].version" }
  • The selector matches exactly the 10 local workspace packages (no source field); registry deps are untouched.

Verification

  • JSON validated.
  • Confirmed the selector matches exactly the 10 local packages in Cargo.lock.
  • After merge, release-please will regenerate the 0.40.3 release PR with Cargo.lock synced.

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #169   +/-   ##
=======================================
  Coverage   95.27%   95.27%           
=======================================
  Files         124      124           
  Lines       61312    61312           
=======================================
  Hits        58412    58412           
  Misses       2900     2900           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sunerpy
sunerpy merged commit e743913 into main Jul 24, 2026
7 checks passed
@sunerpy
sunerpy deleted the chore/release-please-lock-updater branch July 24, 2026 02:24
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