Commit 6d40b97
committed
fix(release): bump hard-coded version strings to 0.0.2 + route through 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.21 parent ba5f1a6 commit 6d40b97
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
2802 | 2802 | | |
2803 | 2803 | | |
2804 | 2804 | | |
2805 | | - | |
| 2805 | + | |
2806 | 2806 | | |
2807 | 2807 | | |
2808 | 2808 | | |
| |||
2871 | 2871 | | |
2872 | 2872 | | |
2873 | 2873 | | |
2874 | | - | |
| 2874 | + | |
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
| |||
2944 | 2944 | | |
2945 | 2945 | | |
2946 | 2946 | | |
2947 | | - | |
| 2947 | + | |
2948 | 2948 | | |
2949 | 2949 | | |
2950 | 2950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments