also looking at this
build: single-source the package and CLI version
#20
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.
| @@ -328,7 +328,8 @@ We follow [Semantic Versioning](https://semver.org/): | ||
| 328 | 328 | |
| 329 | 329 | ### Release Steps |
| 330 | 330 | |
| 331 | 1. Update version in `build.zig.zon` | |
| 331 | 1. Update version in `build.zig.zon`. This is the authoritative package | |
| 332 | version; the build injects it into `zig-test --version` automatically. | |
| 332 | 333 | 2. Update CHANGELOG.md |
| 333 | 334 | 3. Create git tag: `git tag -a v1.2.3 -m "Release 1.2.3"` |
| 334 | 335 | 4. Push tag: `git push origin v1.2.3` |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | # Zig Test Framework - Features Summary |
| 2 | 2 | |
| 3 | **Framework Version:** 2.3.0 | |
| 3 | **Framework Version:** See `build.zig.zon` (the authoritative version source) | |
| 4 | 4 | **Last Updated:** 2025-10-26 |
| 5 | 5 | **Status:** Production Ready |
| 6 | 6 | |
| @@ -537,5 +537,5 @@ The framework is ready for production use and provides a comprehensive testing s | ||
| 537 | 537 | --- |
| 538 | 538 | |
| 539 | 539 | **Last Updated:** 2025-10-26 |
| 540 | **Framework Version:** 2.3.0 | |
| 540 | **Framework Version:** See `build.zig.zon` (the authoritative version source) | |
| 541 | 541 | **Status:** Production Ready ✅ |
| @@ -35,11 +35,11 @@ Add to your `build.zig.zon`: | ||
| 35 | 35 | ```zig |
| 36 | 36 | .{ |
| 37 | 37 | .name = "my-project", |
| 38 | .version = "0.1.0", | |
| 38 | .version = "0.1.0", // Your project's version | |
| 39 | 39 | .dependencies = .{ |
| 40 | 40 | .@"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 | |
| 43 | 43 | }, |
| 44 | 44 | }, |
| 45 | 45 | } |