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

@@ -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