Clarify when Go module version constraints apply

This commit is contained in:
2026-12-05 19:15:39 +00:00
parent f4a0064342
commit 751ce6d54a

View File

@@ -318,9 +318,20 @@ decisions.
### Release identity and Go distribution
Apply Go module-path major-version compatibility constraints only when Go
module publication is selected. Selecting Go builds and tests alone does not
enable those constraints. General source releases validate their selected
version format independently of the application's module-path major version.
For example, an application declaring `module example.com/myapp` can retain
that path while releasing binaries or checked-out source as `v2.0.0`,
`v3.0.0`, or `2026-12-05`. Its release identifier requires no corresponding
`/v2` or `/v3` suffix for those distribution methods.
Go module publication retains semantic version validation, module-path major
compatibility, and Go-specific tag derivation. These constraints also matter
for executables distributed through versioned Go installation commands.
compatibility, and Go-specific tag derivation. Select that publication mode
when distributing published versions through Go's module system, including
executables installed with `go install …@VERSION`.
For example, `v2026.12.3` denotes major version 2026, while `2026-12-05` is
not a canonical Go module release version. See the
[Go versions reference](https://go.dev/ref/mod#versions) and
@@ -446,7 +457,10 @@ while CI is active or its status is unknown. Verify that rehearsal and
production paths share configured builds and delivery mechanics. Cover
version/date boundaries, revision and leading-prefix conventions, general source
versus Go module tag derivation, physical major-version directories, and explicit
product prefix overrides. Cover a YAML/JSON-only repository with no `go.mod`
product prefix overrides. Verify Go application builds and tests with an
unsuffixed module path and source-release identifiers such as `v2.0.0` and
`2026-12-05`; selecting Go module publication must retain module-path major
compatibility checks. Cover a YAML/JSON-only repository with no `go.mod`
through candidate validation, publication, hosted-page delivery, readiness,
recovery, and the rehearsal. Verify source-scoped file checks, installed-tool
version selection, and page-only behavior without Go tests or binary builds.