2 Commits

Author SHA1 Message Date
82bac1a3ab Prepare the v0.10.0 release notes 2026-11-17 15:31:10 +00:00
0f0bace29e Upgrade to Go 1.27 and refresh dependencies 2026-11-17 15:26:46 +00:00
19 changed files with 73 additions and 34 deletions

View File

@@ -803,7 +803,7 @@ func newBuildConsumer(t *testing.T, mainSource string) string {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
module := fmt.Sprintf("module example.com/buildfixture\n\ngo 1.26.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", filepath.ToSlash(root)) module := fmt.Sprintf("module example.com/buildfixture\n\ngo 1.27.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", filepath.ToSlash(root))
writeBuildFixture(t, repository, "go.mod", module) writeBuildFixture(t, repository, "go.mod", module)
writeBuildFixture(t, repository, "cmd/app/main.go", mainSource) writeBuildFixture(t, repository, "cmd/app/main.go", mainSource)
writeBuildFixture(t, repository, "cmd/app/main_test.go", "package main\nimport \"testing\"\nfunc TestCandidateFixture(t *testing.T) {}\n") writeBuildFixture(t, repository, "cmd/app/main_test.go", "package main\nimport \"testing\"\nfunc TestCandidateFixture(t *testing.T) {}\n")
@@ -821,7 +821,7 @@ func writeNestedBuildConsumer(t *testing.T, repository, moduleDir, modulePath, m
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
module := fmt.Sprintf("module %s\n\ngo 1.26.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", modulePath, filepath.ToSlash(root)) module := fmt.Sprintf("module %s\n\ngo 1.27.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", modulePath, filepath.ToSlash(root))
writeBuildFixture(t, repository, filepath.ToSlash(filepath.Join(moduleDir, "go.mod")), module) writeBuildFixture(t, repository, filepath.ToSlash(filepath.Join(moduleDir, "go.mod")), module)
writeBuildFixture(t, repository, filepath.ToSlash(filepath.Join(moduleDir, "cmd/app/main.go")), mainSource) writeBuildFixture(t, repository, filepath.ToSlash(filepath.Join(moduleDir, "cmd/app/main.go")), mainSource)
return filepath.Join(repository, filepath.FromSlash(moduleDir)) return filepath.Join(repository, filepath.FromSlash(moduleDir))
@@ -833,7 +833,7 @@ func prepareCandidateBuild(t *testing.T, repository, mainSource string) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
module := fmt.Sprintf("module example.com/candidatebuild\n\ngo 1.26.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", filepath.ToSlash(root)) module := fmt.Sprintf("module example.com/candidatebuild\n\ngo 1.27.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", filepath.ToSlash(root))
writeFile(t, repository, "go.mod", module) writeFile(t, repository, "go.mod", module)
writeFile(t, repository, ".gitignore", "dist/\n") writeFile(t, repository, ".gitignore", "dist/\n")
writeFile(t, repository, "cmd/app/main.go", mainSource) writeFile(t, repository, "cmd/app/main.go", mainSource)

View File

@@ -19,7 +19,7 @@ func TestVersionInConsumerExecutable(t *testing.T) {
dir := t.TempDir() dir := t.TempDir()
module := fmt.Sprintf(`module example.com/versionfixture module := fmt.Sprintf(`module example.com/versionfixture
go 1.26.0 go 1.27.0
require go.maximumdirect.net/releasekit v0.0.0 require go.maximumdirect.net/releasekit v0.0.0

View File

@@ -1799,7 +1799,7 @@ func newCLIBuildRepository(t *testing.T, mainSource string) string {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
module := fmt.Sprintf("module example.com/cli-candidate\n\ngo 1.26.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", filepath.ToSlash(root)) module := fmt.Sprintf("module example.com/cli-candidate\n\ngo 1.27.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => %s\n", filepath.ToSlash(root))
write := func(name, contents string) { write := func(name, contents string) {
t.Helper() t.Helper()
path := filepath.Join(repository, filepath.FromSlash(name)) path := filepath.Join(repository, filepath.FromSlash(name))

View File

@@ -32,7 +32,7 @@ func TestVendoredAPIOnlyPublicationRecovery(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
writeRepositoryFile(t, repo, "go.mod", "module example.com/cli-candidate\n\ngo 1.26.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => "+strconv.Quote(relative)+"\n") writeRepositoryFile(t, repo, "go.mod", "module example.com/cli-candidate\n\ngo 1.27.0\n\nrequire go.maximumdirect.net/releasekit v0.0.0\n\nreplace go.maximumdirect.net/releasekit => "+strconv.Quote(relative)+"\n")
writeRepositoryFile(t, repo, "uses_releasekit.go", "package candidate\nimport _ \"go.maximumdirect.net/releasekit\"\n") writeRepositoryFile(t, repo, "uses_releasekit.go", "package candidate\nimport _ \"go.maximumdirect.net/releasekit\"\n")
sums, err := os.ReadFile(filepath.Join(source, "go.sum")) sums, err := os.ReadFile(filepath.Join(source, "go.sum"))
if err != nil { if err != nil {
@@ -163,7 +163,7 @@ func TestColdGoToolRecoverySurvivesLauncherExit(t *testing.T) {
} }
const toolModule = "go.maximumdirect.net/releasekit" const toolModule = "go.maximumdirect.net/releasekit"
const toolVersion = "v0.0.0" const toolVersion = "v0.0.0"
module := "module example.com/cli-candidate\n\ngo 1.26.0\n\nrequire " + toolModule + " " + toolVersion + "\n" module := "module example.com/cli-candidate\n\ngo 1.27.0\n\nrequire " + toolModule + " " + toolVersion + "\n"
var wildcardSource string var wildcardSource string
if registered { if registered {
module += "\nreplace " + toolModule + " => " + strconv.Quote(selectedSource) + "\n" module += "\nreplace " + toolModule + " => " + strconv.Quote(selectedSource) + "\n"

View File

@@ -542,7 +542,7 @@ func executeWoodpeckerBlock(block, repository string, environment map[string]str
func selectReleaseKitModule(t *testing.T, repository, releaseKitSource string, includeSum bool) { func selectReleaseKitModule(t *testing.T, repository, releaseKitSource string, includeSum bool) {
t.Helper() t.Helper()
const module = "go.maximumdirect.net/releasekit" const module = "go.maximumdirect.net/releasekit"
goMod := fmt.Sprintf("module example.com/tagged-app\n\ngo 1.26.0\n\nrequire %s v0.2.0\n\nreplace %s => %s\n", module, module, strconv.Quote(releaseKitSource)) goMod := fmt.Sprintf("module example.com/tagged-app\n\ngo 1.27.0\n\nrequire %s v0.2.0\n\nreplace %s => %s\n", module, module, strconv.Quote(releaseKitSource))
writeRepositoryFile(t, repository, "go.mod", goMod) writeRepositoryFile(t, repository, "go.mod", goMod)
cliGitRun(t, repository, "add", "go.mod") cliGitRun(t, repository, "add", "go.mod")
if includeSum { if includeSum {

View File

@@ -26,8 +26,8 @@ declaration retains the dependency through `go mod tidy`. Commit the resulting
version and review the module changes. version and review the module changes.
The Go tool dependency feature requires Go 1.24 or later. The current ReleaseKit The Go tool dependency feature requires Go 1.24 or later. The current ReleaseKit
module declares a Go 1.26.0 minimum, so use Go 1.26.0 or later for the current module declares a Go 1.27.0 minimum, so use Go 1.27.0 or later for the current
release. Tool dependencies share the consumer's module graph: their requirements source. Tool dependencies share the consumer's module graph: their requirements
participate in dependency version selection and can raise the consumer module's participate in dependency version selection and can raise the consumer module's
Go minimum. See the Go minimum. See the
[Go tool dependency reference](https://go.dev/ref/mod#go-mod-file-tool). [Go tool dependency reference](https://go.dev/ref/mod#go-mod-file-tool).
@@ -110,7 +110,7 @@ Existing consumer tags retain their recorded module files, tool selection, and
matching workflows for retries. Apply these migration steps to new consumer matching workflows for retries. Apply these migration steps to new consumer
revisions. Source repository and hosted release URLs use revisions. Source repository and hosted release URLs use
`https://forge.maximumdirect.net/base-layer/releasekit`; the vanity path is the `https://forge.maximumdirect.net/base-layer/releasekit`; the vanity path is the
Go module identity. The Go consumer minimum remains 1.26.0. Go module identity.
## CI adoption ## CI adoption

View File

@@ -27,7 +27,7 @@ Go declarations and GoDoc remain the owners of exact exported contracts.
## Module and dependencies ## Module and dependencies
The module is `go.maximumdirect.net/releasekit`, with Go language The module is `go.maximumdirect.net/releasekit`, with Go language
version `1.26.0`. `go.mod` requires `golang.org/x/mod` and Goldmark for internal version `1.27.0`. `go.mod` requires `golang.org/x/mod` and Goldmark for internal
validation; public facades do not expose either dependency. `go list ./...` validation; public facades do not expose either dependency. `go list ./...`
reports these implemented packages: reports these implemented packages:

View File

@@ -2,28 +2,30 @@
## Go Authors ## Go Authors
Selected module: `golang.org/x/mod` at `v0.40.0`. Selected module: `golang.org/x/mod` at `v0.43.0`.
Copyright 2009 The Go Authors. Copyright 2009 The Go Authors.
SPDX-License-Identifier: BSD-3-Clause SPDX-License-Identifier: BSD-3-Clause
License and notices: [BSD 3-Clause](licenses/BSD-3-Clause.txt) | [LICENSE](https://go.googlesource.com/mod/+/d3398d06de5fa5c71083d3d1c26f2cda73508e0f/LICENSE). License and notices: [BSD 3-Clause](licenses/BSD-3-Clause.txt) |
[LICENSE](https://go.googlesource.com/mod/+/d4f320b9266480df5ed3d791e0c68e64c58c5dde/LICENSE) |
[PATENTS](https://go.googlesource.com/mod/+/d4f320b9266480df5ed3d791e0c68e64c58c5dde/PATENTS).
[Source](https://go.googlesource.com/mod/+/d3398d06de5fa5c71083d3d1c26f2cda73508e0f). [Source](https://go.googlesource.com/mod/+/d4f320b9266480df5ed3d791e0c68e64c58c5dde).
## Goldmark ## Goldmark
Selected module: `github.com/yuin/goldmark/v2` at `v2.1.6`. Selected module: `github.com/yuin/goldmark/v2` at `v2.1.16`.
Copyright (c) 2019 Yusuke Inuzuka. Copyright (c) 2019 Yusuke Inuzuka.
SPDX-License-Identifier: MIT SPDX-License-Identifier: MIT
License and notices: [MIT](licenses/MIT.txt) | License and notices: [MIT](licenses/MIT.txt) |
[LICENSE](https://github.com/yuin/goldmark/blob/a8d4ee5a0bd7d5493fdd1e339b4e75df92f8684c/LICENSE). [LICENSE](https://github.com/yuin/goldmark/blob/c3f939122ba4dd6f80e05043ad195b82e77fcb41/LICENSE).
[Source](https://github.com/yuin/goldmark/tree/a8d4ee5a0bd7d5493fdd1e339b4e75df92f8684c). [Source](https://github.com/yuin/goldmark/tree/c3f939122ba4dd6f80e05043ad195b82e77fcb41).
## Standard Repository Policies ## Standard Repository Policies

View File

@@ -24,7 +24,7 @@ committed candidate. Source publication requires no delivery token. The
[configuration reference](config.md) owns credential selection and validator [configuration reference](config.md) owns credential selection and validator
semantics. semantics.
Use a clean clone on `main`. The chosen build toolchain is Go 1.26.10. Make that Use a clean clone on `main`. The chosen build toolchain is Go 1.27.4. Make that
local installation the active `go` command for preparation, building the release local installation the active `go` command for preparation, building the release
executable, and candidate validation: executable, and candidate validation:
@@ -40,7 +40,7 @@ The maintained [source-delivery image](../examples/woodpecker/releasekit-source-
and [consumer template image](../examples/woodpecker/tag-delivery.yml) follow the and [consumer template image](../examples/woodpecker/tag-delivery.yml) follow the
chosen build toolchain; update them together when that selection changes. chosen build toolchain; update them together when that selection changes.
The current consumer minimum is Go 1.26.0, declared in [go.mod](../go.mod). The current consumer minimum is Go 1.27.0, declared in [go.mod](../go.mod).
Keep it for a release unless release preparation deliberately selects a newer Keep it for a release unless release preparation deliberately selects a newer
series under the [Go support policy](policy/release.md#consumer-minimum-and-release-toolchain). series under the [Go support policy](policy/release.md#consumer-minimum-and-release-toolchain).
When increasing it, update `go.mod` to the first stable version of the selected When increasing it, update `go.mod` to the first stable version of the selected

35
docs/releases/v0.10.0.md Normal file
View File

@@ -0,0 +1,35 @@
# ReleaseKit v0.10.0
ReleaseKit now requires Go 1.27.0 or later, up from Go 1.26.0. Release builds
and validation use Go 1.27.4, and the maintained Woodpecker templates use
`golang:1.27.4-bookworm`.
## Dependency upgrades
- `github.com/yuin/goldmark/v2`, used for Markdown validation, moves from
v2.1.6 to v2.1.16.
- `golang.org/x/mod`, used for Go module handling, moves from v0.40.0 to
v0.43.0. This selects `golang.org/x/tools` v0.52.0 in the module graph.
## Upgrade guidance
1. Make Go 1.27.0 or newer available wherever you build, test, or run
ReleaseKit through `go tool`. Set the `go` directive to at least `1.27.0`
in each consumer module that upgrades to v0.10.0.
2. Upgrade the dependency to v0.10.0. Use
`go get go.maximumdirect.net/releasekit@v0.10.0` for a Go API dependency or
`go get -tool go.maximumdirect.net/releasekit/cmd/releasekit@v0.10.0` for a
registered CLI tool. Run `go mod tidy`, regenerate `vendor/` if you use it,
and commit the resulting changes. For a standalone CLI, rebuild it with
`go install go.maximumdirect.net/releasekit/cmd/releasekit@v0.10.0`.
3. Update copied Woodpecker templates or custom CI images before delivering
tags that select v0.10.0. For an older tag, use a workflow compatible with
the ReleaseKit version recorded in that tag's module files.
The consumer guides cover tool registration, host target selection, and
tagged delivery workflows. [Adoption guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/adoption.md) ·
[Delivery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md)
[COPYRIGHT](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/COPYRIGHT) |
[LICENSE](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/LICENSE) |
[ATTRIBUTION](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/oss/attribution.md)

View File

@@ -9,7 +9,7 @@ Copy the contents of this directory into a consumer repository root, keeping
the listed module directories and profile paths at those locations, then run the listed module directories and profile paths at those locations, then run
the launcher from that checkout. the launcher from that checkout.
The sample modules declare Go 1.26.0, matching the current ReleaseKit consumer The sample modules declare Go 1.27.0, matching the current ReleaseKit consumer
minimum. minimum.
## Select the release tool ## Select the release tool

View File

@@ -1,3 +1,3 @@
module example.com/multi-module-consumer module example.com/multi-module-consumer
go 1.26.0 go 1.27.0

View File

@@ -1,3 +1,3 @@
module example.com/multi-module-consumer/integrations/ckconfig module example.com/multi-module-consumer/integrations/ckconfig
go 1.26.0 go 1.27.0

View File

@@ -1,3 +1,3 @@
module example.com/multi-module-consumer/integrations/core/v2 module example.com/multi-module-consumer/integrations/core/v2
go 1.26.0 go 1.27.0

View File

@@ -8,7 +8,7 @@ when:
steps: steps:
- name: deliver - name: deliver
image: golang:1.26.10-bookworm image: golang:1.27.4-bookworm
environment: environment:
RELEASEKIT_GITEA_TOKEN: RELEASEKIT_GITEA_TOKEN:
from_secret: releasekit_gitea_token from_secret: releasekit_gitea_token

View File

@@ -4,7 +4,7 @@ when:
steps: steps:
- name: deliver - name: deliver
image: golang:1.26.10-bookworm image: golang:1.27.4-bookworm
environment: environment:
RELEASEKIT_GITEA_TOKEN: RELEASEKIT_GITEA_TOKEN:
from_secret: releasekit_gitea_token from_secret: releasekit_gitea_token

View File

@@ -1,6 +1,6 @@
matrix: matrix:
include: include:
- GO_IMAGE: golang:1.26.10-bookworm - GO_IMAGE: golang:1.27.4-bookworm
when: when:
- event: tag - event: tag

8
go.mod
View File

@@ -1,8 +1,10 @@
module go.maximumdirect.net/releasekit module go.maximumdirect.net/releasekit
go 1.26.0 go 1.27.0
toolchain go1.27.4
require ( require (
github.com/yuin/goldmark/v2 v2.1.6 github.com/yuin/goldmark/v2 v2.1.16
golang.org/x/mod v0.40.0 golang.org/x/mod v0.43.0
) )

8
go.sum
View File

@@ -1,4 +1,4 @@
github.com/yuin/goldmark/v2 v2.1.6 h1:igy0q9JcqovoFXFx/XjtU8sHVhcUHavPj2sA3EoKJUE= github.com/yuin/goldmark/v2 v2.1.16 h1:MXvCVo+Cb2SVJ5cwJUzXetDjI7HECRJCkcqylEQtcJo=
github.com/yuin/goldmark/v2 v2.1.6/go.mod h1:G6M4/qOFtfn01/o14BU1UR2Lo5N3S9Qo7xCuz/sHjGQ= github.com/yuin/goldmark/v2 v2.1.16/go.mod h1:G6M4/qOFtfn01/o14BU1UR2Lo5N3S9Qo7xCuz/sHjGQ=
golang.org/x/mod v0.40.0 h1:hUv+3cXcdRHz08UmSiOob7sadHig73uo5bkXxQ/tvUs= golang.org/x/mod v0.43.0 h1:MFuq5J6s35W9D3IjkwyWc9vHh0nENOrt5K8Iof4ofmg=
golang.org/x/mod v0.40.0/go.mod h1:0/weTWkPWGBikyTWAX3dkjVztMmBA5hM0DH6BElSupE= golang.org/x/mod v0.43.0/go.mod h1:4ec1JnuyBz5+FIVhg86UsA39YG8BpnrZdJYSNHmGzHY=