generated from eblume/project-template
fix: --version reports release version + build SHA; release tags a version-bump commit
Some checks failed
Build / validate (pull_request) Has been cancelled
Some checks failed
Build / validate (pull_request) Has been cancelled
heph-core gains a build.rs that captures the short git SHA and a
`heph_core::VERSION` const ("<crate-version> (<sha>)"); heph and hephd use it
for clap's --version. The crate version stays sourced from Cargo.toml.
release.yaml now bumps the workspace version into Cargo.toml + Cargo.lock on a
commit that only the tag points at, tags it manually, and pushes just the tag —
so cargo install --git --tag vX.Y.Z reports the real version while main stays at
0.0.0. The changelog commit moved ahead of the tag so the release includes its
own changelog.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c266f7ee4a
commit
598dc59580
7 changed files with 113 additions and 27 deletions
1
docs/changelog.d/release-version-bump.bugfix.md
Normal file
1
docs/changelog.d/release-version-bump.bugfix.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
`heph --version` / `hephd --version` now report the release version plus the build commit (e.g. `1.0.0 (ab6701d12)`) instead of a bare `0.0.0`. The short git SHA is captured at build time, so any build — released, branch, or dirty working tree — is traceable to its commit.
|
||||
1
docs/changelog.d/release-version-bump.infra.md
Normal file
1
docs/changelog.d/release-version-bump.infra.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
The release workflow now bakes the release version into `Cargo.toml` + `Cargo.lock` on a commit that only the release tag points at (tagging it manually), so `cargo install --git --tag vX.Y.Z` reports the real version while `main` stays at `0.0.0`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue