Skip to content

fix(release): regenerate and commit Cargo.lock on release#5

Merged
offendingcommit merged 1 commit intomainfrom
fix/release-cargo-lock
May 3, 2026
Merged

fix(release): regenerate and commit Cargo.lock on release#5
offendingcommit merged 1 commit intomainfrom
fix/release-cargo-lock

Conversation

@offendingcommit
Copy link
Copy Markdown
Owner

Problem

Each release runs sed against packages/desktop/src-tauri/Cargo.toml to bump the crate version, but Cargo.lock is never regenerated and isn't in the @semantic-release/git asset list. Result: every release commit leaves Cargo.lock one version behind, producing dirty working trees on main immediately after release.

Currently visible: Cargo.lock lists openconcho v0.5.1 while the toml is 0.5.2.

Fix

  • prepareCmd now also runs cargo update -p openconcho --manifest-path packages/desktop/src-tauri/Cargo.toml to refresh the lockfile in lockstep.
  • Cargo.lock added to @semantic-release/git assets so it ships in the release commit.
  • Bumps the lagging 0.5.1 -> 0.5.2 entry that the 0.5.2 release missed, so this PR leaves the tree clean.

Notes

  • Requires cargo on the release runner (already present — release uses tauri-action).
  • No code changes; release-config only.

Previously the release workflow updated Cargo.toml's version via sed
but never refreshed Cargo.lock, leaving it one version behind after
every release. Add cargo update for the openconcho package to the
prepareCmd, and add Cargo.lock to @semantic-release/git assets so it
ships in the release commit.

Also bumps the lagging 0.5.1 -> 0.5.2 lockfile entry that the
0.5.2 release missed.
@offendingcommit offendingcommit merged commit 0daeadf into main May 3, 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.

1 participant