Skip to content

chore: version sync automation and dev tooling docs#18

Merged
elasticdotventures merged 3 commits into
mainfrom
chore/dev-tooling
Apr 16, 2026
Merged

chore: version sync automation and dev tooling docs#18
elasticdotventures merged 3 commits into
mainfrom
chore/dev-tooling

Conversation

@promptexecutionerr
Copy link
Copy Markdown
Collaborator

Summary

  • Workspace version bumped 0.1.01.3.7 to match the current release tag — CARGO_PKG_VERSION was stale, causing l3dg3rr_plugin_info to report the wrong version
  • cog.toml pre_bump_hook added: cargo set-version {{version}} runs before every cog bump commit, keeping Cargo.toml in sync with the release tag automatically going forward
  • CLAUDE.md Installation section filled in: documents required dev tools (cocogitto, cargo-edit) and the one-command release workflow

Why pre_bump_hooks, not post_bump_hooks

pre_bump_hooks run after the new version is calculated but before the bump commit is created — so the Cargo.toml change lands in the same commit as CHANGELOG.md. post_bump_hooks would leave Cargo.toml as a trailing dirty commit.

Requires

cargo install cargo-edit   # provides cargo set-version used by the cog hook

Test plan

  • cargo test -p ledgerr-mcp — all tests pass with bumped version
  • Next cog bump --auto: verify Cargo.toml workspace version updates atomically with CHANGELOG

🤖 Generated with Claude Code

Claude Sonnet (coordinator) and others added 3 commits April 17, 2026 06:22
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>
@elasticdotventures elasticdotventures merged commit 3a83b9a into main Apr 16, 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.

2 participants