Skip to content

fix(release): bump hard-coded version strings to 0.0.2#13

Merged
Sunrisepeak merged 1 commit intomainfrom
ci/release-version-strings
May 8, 2026
Merged

fix(release): bump hard-coded version strings to 0.0.2#13
Sunrisepeak merged 1 commit intomainfrom
ci/release-version-strings

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

The v0.0.2 release.yml run produced a fully-functional musl-static
binary, but the smoke-test step rejected it because mcpp --version
still printed mcpp 0.0.1. The version literal had been hand-coded in
five places that the [package].version bump in mcpp.toml didn't
reach.

Bump the canonical constant mcpp::toolchain::MCPP_VERSION to 0.0.2
and route every other mcpp 0.0.x print site through it. Future bumps
need a one-line change.

Test plan

  • Local build, mcpp --versionmcpp 0.0.2
  • Local build, mcpp self versionmcpp 0.0.2
  • CI green
  • Re-tag v0.0.2 to merge commit + push tag → release.yml passes smoke-test

…h MCPP_VERSION

The v0.0.2 release.yml run produced a fully-functional musl-static
binary, but the smoke-test step rejected it because `mcpp --version`
still printed `mcpp 0.0.1`. The version literal had been hand-coded in
four places that the [package].version bump in mcpp.toml didn't reach:

  - src/toolchain/fingerprint.cppm:21  MCPP_VERSION = "0.0.1"
  - src/cli.cppm:64                    "mcpp v0.0.1 — ..." (print_usage)
  - src/cli.cppm:2805                  "mcpp 0.0.1"        (cmd_self_version)
  - src/cli.cppm:2874                  "mcpp 0.0.1"        (--version handler)
  - src/cli.cppm:2947                  .version("0.0.1")   (cmdline App ctor)

Bump the canonical constant in `fingerprint.cppm` to 0.0.2 and refactor
all five sites to read `mcpp::toolchain::MCPP_VERSION` so future bumps
only need a one-line change. The fingerprint constant already drives
the toolchain hash key, so its value matters for cache invalidation
anyway — this consolidates "what version am I" into a single
authoritative location.

Verified locally:
  $ mcpp --version
  mcpp 0.0.2
  $ mcpp self version
  mcpp 0.0.2
@Sunrisepeak Sunrisepeak merged commit 6d40b97 into main May 8, 2026
1 check 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.

1 participant