Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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.lockso theinitiumpackage entry reports version2.0.0. - Update the release skill documentation to explicitly require committing
Cargo.lockduring 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cargo.lockto match the v2.0.0 version bump inCargo.tomlCargo.lockin the release commitThe v2.0.0 release workflow failed at
cargo publishbecauseCargo.lockstill referenced version1.3.1whileCargo.tomlwas bumped to2.0.0. Thecargo teststep updated the lockfile in the working directory, making it dirty, andcargo publishrejected the dirty state.How to verify
After merge, delete and re-push the
v2.0.0tag to re-trigger the release workflow.🤖 Generated with Claude Code