Use the latest Go patch for testing and release builds

This commit is contained in:
2026-12-04 15:04:36 +00:00
parent 13e1ce5d86
commit 9a63e4f8e6
3 changed files with 23 additions and 4 deletions

View File

@@ -56,6 +56,10 @@ types and contracts before changing behavior.
## Validation
Use the testing toolchain selected by the
[release policy](policy/release.md#consumer-minimum-and-release-toolchain).
The [release runbook](release.md#prepare) provides native Go selection commands.
Use focused package tests while iterating. Run the repository-wide checks when
a change affects shared contracts, application behavior, or maintained
documentation examples:

View File

@@ -91,6 +91,12 @@ series as the consumer minimum, such as `go 1.26.0`. Use a higher patch minimum
when a dependency or an identified correctness fix requires it, and document
the reason.
For Notarius, the consumer minimum remains the initial `.0` release of the
selected Go minor series. Use the newest available stable patch in that same
series for testing and release builds. Resolve the patch during release
preparation and use that toolchain consistently for candidate validation and
delivery builds.
For release-policy purposes, successful build and release validation on the
selected Go patch release are sufficient to presume support across that Go
series, subject to the declared consumer minimum and concrete evidence of

View File

@@ -6,17 +6,26 @@ publication and hosted delivery are separate outcomes. The primary branch is
## Prepare
Use Git, a POSIX shell, Go 1.27.0, Git access to `origin`, and ordinary access
to private modules. The consumer minimum remains in [go.mod](../go.mod). Prepare
the selected toolchain and dependencies separately from offline validation:
Use Git, a POSIX shell, a Go installation, Git access to `origin`, and ordinary
access to private modules. The consumer minimum remains in [go.mod](../go.mod).
Select the newest stable patch in its current minor series, Go 1.27, for testing
and release builds. Resolve it afresh when preparing each release rather than
pinning the consumer minimum or relying on whichever patch is installed locally.
Prepare the selected toolchain and dependencies separately from offline validation:
```sh
export GOTOOLCHAIN=go1.27.0
export GOWORK=off
notarius_release_go=$(GOTOOLCHAIN=local go list -m -f '{{.Version}}' go@1.27)
export GOTOOLCHAIN="go${notarius_release_go}"
go version
go mod download
```
If version lookup fails, resolve that failure before proceeding. Keep this
environment for validation, publication, and delivery. The native Go version
query selects the patch without changing `go.mod` or `go.sum`; see
[Go toolchain selection](https://go.dev/doc/toolchain).
Choose an unused stable version under the policy's compatibility rules. Add
`docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
summary, and any compatibility or upgrade guidance. Update current documentation