ReviewOS

also looking at this

zig-utils/zig-test-framework

build: single-source the package and CLI version

#20
Merged glennmichael123 wants to merge codex/issue-13-version into main
7 files +40 -11

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

CONTRIBUTING.mdmodified+2-1
Changes to CONTRIBUTING.md
@@ -328,7 +328,8 @@ We follow [Semantic Versioning](https://semver.org/):
328328
329329### Release Steps
330330
3311. Update version in `build.zig.zon`
3311. Update version in `build.zig.zon`. This is the authoritative package
332 version; the build injects it into `zig-test --version` automatically.
3323332. Update CHANGELOG.md
3333343. Create git tag: `git tag -a v1.2.3 -m "Release 1.2.3"`
3343354. Push tag: `git push origin v1.2.3`
FEATURES_SUMMARY.mdmodified+2-2
Changes to FEATURES_SUMMARY.md
@@ -1,6 +1,6 @@
11# Zig Test Framework - Features Summary
22
3**Framework Version:** 2.3.0
3**Framework Version:** See `build.zig.zon` (the authoritative version source)
44**Last Updated:** 2025-10-26
55**Status:** Production Ready
66
@@ -537,5 +537,5 @@ The framework is ready for production use and provides a comprehensive testing s
537537---
538538
539539**Last Updated:** 2025-10-26
540**Framework Version:** 2.3.0
540**Framework Version:** See `build.zig.zon` (the authoritative version source)
541541**Status:** Production Ready ✅
README.mdmodified+3-3
Changes to README.md
@@ -35,11 +35,11 @@ Add to your `build.zig.zon`:
3535```zig
3636.{
3737 .name = "my-project",
38 .version = "0.1.0",
38 .version = "0.1.0", // Your project's version
3939 .dependencies = .{
4040 .@"zig-test-framework" = .{
41 .url = "https://github.com/zig-utils/zig-test-framework/archive/refs/tags/v0.1.0.tar.gz",
42 // Replace with actual hash after publishing
41 .url = "https://github.com/zig-utils/zig-test-framework/archive/refs/tags/vX.Y.Z.tar.gz",
42 // Replace X.Y.Z and the hash with the release you use
4343 },
4444 },
4545}