chore: version sync automation and dev tooling docs#18
Merged
Conversation
Workspace Cargo.toml was still at 0.1.0 while git tags and GitHub releases had reached v1.3.7. Aligns CARGO_PKG_VERSION with the actual release series so the plugin_info self-update version check is correct. Also updates the ledger-core pinned dep in ledgerr-mcp accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without this, cog bump creates the release tag and updates CHANGELOG.md but never touches Cargo.toml, causing CARGO_PKG_VERSION to drift from the actual release version. The pre-bump hook runs cargo set-version before the bump commit so both files change in a single atomic commit. Requires cargo-edit: cargo install cargo-edit Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fills the stub Installation section with the actual tool requirements: rustup, cocogitto, cargo-edit (needed for the cog pre_bump_hook that keeps Cargo.toml in sync), and the xtask crate. Also documents the one-command release workflow so the version bump process is explicit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
0.1.0→1.3.7to match the current release tag —CARGO_PKG_VERSIONwas stale, causingl3dg3rr_plugin_infoto report the wrong versioncog.tomlpre_bump_hook added:cargo set-version {{version}}runs before everycog bumpcommit, keepingCargo.tomlin sync with the release tag automatically going forwardCLAUDE.mdInstallation section filled in: documents required dev tools (cocogitto,cargo-edit) and the one-command release workflowWhy pre_bump_hooks, not post_bump_hooks
pre_bump_hooksrun after the new version is calculated but before the bump commit is created — so theCargo.tomlchange lands in the same commit asCHANGELOG.md.post_bump_hookswould leaveCargo.tomlas a trailing dirty commit.Requires
cargo install cargo-edit # provides cargo set-version used by the cog hookTest plan
cargo test -p ledgerr-mcp— all tests pass with bumped versioncog bump --auto: verifyCargo.tomlworkspace version updates atomically with CHANGELOG🤖 Generated with Claude Code