Skip to content

build: single-source the package and CLI version - #20

Merged
glennmichael123 merged 2 commits into
mainfrom
codex/issue-13-version
Sep 29, 2026
Merged

glennmichael123 merged 2 commits into
mainfrom
codex/issue-13-version

Conversation

@glennmichael123

Copy link
Copy Markdown
Contributor

Closes #13.

Treats build.zig.zon as the one authoritative release version. build.zig extracts that value at configuration time, validates it as semantic version metadata, injects it into the framework module, and uses it for zig-test --version. The stale independent package.json version is removed.

The default test target invokes the built CLI and compares its exact version output with the manifest-derived value. Release documentation now states that only build.zig.zon needs a version change.

This PR is stacked on #19 so its diff stays scoped to issue #13. Merge #19 first, then retarget this PR to main.

Verification:

  • zig fmt --check .
  • zig build
  • zig build test
  • zig build examples
  • zig build -Dtarget=x86_64-linux-gnu
  • zig build run -- --version prints Zig Test Framework v0.2.2

@glennmichael123
glennmichael123 force-pushed the codex/issue-12-config branch 2 times, most recently from 36a1d6f to 759090e Compare September 29, 2026 16:04
@glennmichael123
glennmichael123 changed the base branch from codex/issue-12-config to main September 29, 2026 16:08
@glennmichael123
glennmichael123 merged commit 9c5c7a0 into main Sep 29, 2026
6 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.

Single-source the package and CLI version

1 participant