Skip to content

fix: update Cargo.lock for v2.0.0#47

Merged
mikkeldamsgaard merged 1 commit intomainfrom
fix/cargo-lock-v2
Mar 14, 2026
Merged

fix: update Cargo.lock for v2.0.0#47
mikkeldamsgaard merged 1 commit intomainfrom
fix/cargo-lock-v2

Conversation

@mikkeldamsgaard
Copy link
Contributor

Summary

  • Update Cargo.lock to match the v2.0.0 version bump in Cargo.toml
  • Update release skill to explicitly include Cargo.lock in the release commit

The v2.0.0 release workflow failed at cargo publish because Cargo.lock still referenced version 1.3.1 while Cargo.toml was bumped to 2.0.0. The cargo test step updated the lockfile in the working directory, making it dirty, and cargo publish rejected the dirty state.

How to verify

grep -A2 'name = "initium"' Cargo.lock  # should show version = "2.0.0"

After merge, delete and re-push the v2.0.0 tag to re-trigger the release workflow.

🤖 Generated with Claude Code

The release commit bumped Cargo.toml but did not include the
corresponding Cargo.lock update, causing cargo publish to fail
with a dirty working directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 14, 2026 11:32
@mikkeldamsgaard mikkeldamsgaard merged commit 6d503b7 into main Mar 14, 2026
10 checks passed
@mikkeldamsgaard mikkeldamsgaard deleted the fix/cargo-lock-v2 branch March 14, 2026 11:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Rust release workflow failure by aligning Cargo.lock with the already-bumped Cargo.toml version (v2.0.0) and updating the release instructions to ensure the lockfile is included in release commits.

Changes:

  • Update Cargo.lock so the initium package entry reports version 2.0.0.
  • Update the release skill documentation to explicitly require committing Cargo.lock during releases.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
Cargo.lock Updates the root package (initium) version to 2.0.0 to prevent lockfile drift during CI publish.
.claude/skills/release/SKILL.md Documents that Cargo.lock must be included in the release commit to avoid dirty-working-tree publish failures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants