Use the latest Go patch for testing and release builds
This commit is contained in:
@@ -56,6 +56,10 @@ types and contracts before changing behavior.
|
|||||||
|
|
||||||
## Validation
|
## 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
|
Use focused package tests while iterating. Run the repository-wide checks when
|
||||||
a change affects shared contracts, application behavior, or maintained
|
a change affects shared contracts, application behavior, or maintained
|
||||||
documentation examples:
|
documentation examples:
|
||||||
|
|||||||
@@ -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
|
when a dependency or an identified correctness fix requires it, and document
|
||||||
the reason.
|
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
|
For release-policy purposes, successful build and release validation on the
|
||||||
selected Go patch release are sufficient to presume support across that Go
|
selected Go patch release are sufficient to presume support across that Go
|
||||||
series, subject to the declared consumer minimum and concrete evidence of
|
series, subject to the declared consumer minimum and concrete evidence of
|
||||||
|
|||||||
@@ -6,17 +6,26 @@ publication and hosted delivery are separate outcomes. The primary branch is
|
|||||||
|
|
||||||
## Prepare
|
## Prepare
|
||||||
|
|
||||||
Use Git, a POSIX shell, Go 1.27.0, Git access to `origin`, and ordinary access
|
Use Git, a POSIX shell, a Go installation, Git access to `origin`, and ordinary
|
||||||
to private modules. The consumer minimum remains in [go.mod](../go.mod). Prepare
|
access to private modules. The consumer minimum remains in [go.mod](../go.mod).
|
||||||
the selected toolchain and dependencies separately from offline validation:
|
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
|
```sh
|
||||||
export GOTOOLCHAIN=go1.27.0
|
|
||||||
export GOWORK=off
|
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 version
|
||||||
go mod download
|
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
|
Choose an unused stable version under the policy's compatibility rules. Add
|
||||||
`docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
|
`docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
|
||||||
summary, and any compatibility or upgrade guidance. Update current documentation
|
summary, and any compatibility or upgrade guidance. Update current documentation
|
||||||
|
|||||||
Reference in New Issue
Block a user