Adopt ReleaseKit v0.11.0 and migrate local delivery credentials
This commit is contained in:
@@ -103,7 +103,7 @@ go list -m go.maximumdirect.net/releasekit
|
||||
go tool releasekit version
|
||||
```
|
||||
|
||||
This repository selects ReleaseKit v0.10.0. `go tool releasekit` preserves the
|
||||
This repository selects ReleaseKit v0.11.0. `go tool releasekit` preserves the
|
||||
tool's exit status and publication report; `go run` maps a nonzero child exit
|
||||
status to 1. ReleaseKit's child Go commands
|
||||
use the `go` found on `PATH` with `GOTOOLCHAIN=local`; keep the selected
|
||||
@@ -121,10 +121,11 @@ export GOOS="$release_host_os" GOARCH="$release_host_arch"
|
||||
ReleaseKit still selects the Linux compilation targets from the profile.
|
||||
|
||||
For hosted delivery, save the Gitea API token in the ignored local file
|
||||
`.releasekit/gitea-token` with owner-only permissions. The profile uses it when
|
||||
`RELEASEKIT_GITEA_TOKEN` is unset or blank; a nonblank environment value takes
|
||||
precedence. The file path resolves from the repository root, and ReleaseKit
|
||||
trims surrounding whitespace from its contents. Keep credentials out of release
|
||||
`.releasekit/gitea-token` with owner-only permissions. The profile selects it through
|
||||
`delivery.credentials.local.token_file`. Local delivery uses this file exclusively;
|
||||
environment tokens do not override it. The file path resolves from the repository
|
||||
root, and ReleaseKit trims surrounding whitespace from its contents. A missing,
|
||||
unreadable, or blank selected file is an error. Keep credentials out of release
|
||||
notes, diagnostic labels, command arguments, and commits. The selected
|
||||
`forbidden_files` check also rejects a committed token at that exact path;
|
||||
it does not scan other files or history. Source publication uses Git
|
||||
@@ -139,6 +140,18 @@ git ls-remote ssh://git@forge.maximumdirect.net:22222/base-layer/configkit.git H
|
||||
Publication requires explicit authorization. Local implementation commits do
|
||||
not authorize a push or release.
|
||||
|
||||
For optional setup diagnostics before choosing a version or writing a note:
|
||||
|
||||
```sh
|
||||
go tool releasekit validate --offline --operation publication --operation go
|
||||
```
|
||||
|
||||
This inspects working configuration, Git publication settings and the Go
|
||||
toolchain without contacting remotes or loading delivery credentials. It does
|
||||
not run tests, check dependency-cache completeness or replace candidate validation.
|
||||
It is not a release prerequisite. ConfigKit does not configure CI rehearsal;
|
||||
the release process continues without waiting for CI.
|
||||
|
||||
## 2. Prepare and commit the candidate
|
||||
|
||||
Choose a stable version that has not been used locally or on the publication
|
||||
@@ -322,9 +335,11 @@ regardless of the CLI's credential-redacted diagnostic output.
|
||||
Reconciliation observes the captured endpoint and exact tag object using current
|
||||
supported Git transport settings. It does not load the current profile, require
|
||||
the original `HEAD`, rerun candidate validation, change tags, or contact Gitea
|
||||
hosted delivery. It needs no clean candidate checkout. Use ReleaseKit v0.8.0 or
|
||||
another CLI supporting the saved record format, including format 2 where exact
|
||||
non-UTF-8 endpoint/path bytes were retained.
|
||||
hosted delivery. It needs no clean candidate checkout. Use a CLI supporting the
|
||||
saved record's format: ReleaseKit v0.11.0 writes format 3, which includes source
|
||||
and version identity, and also reads formats 1 and 2. Older CLIs cannot read
|
||||
format 3; use the current tool for new attempts. Format 2 retains exact non-UTF-8
|
||||
endpoint/path bytes.
|
||||
|
||||
| Reconciliation status | Meaning and next action |
|
||||
| --- | --- |
|
||||
|
||||
2
go.mod
2
go.mod
@@ -6,7 +6,7 @@ require go.yaml.in/yaml/v4 v4.0.0
|
||||
|
||||
require (
|
||||
github.com/yuin/goldmark/v2 v2.1.16 // indirect
|
||||
go.maximumdirect.net/releasekit v0.10.0 // indirect
|
||||
go.maximumdirect.net/releasekit v0.11.0 // indirect
|
||||
golang.org/x/mod v0.43.0 // indirect
|
||||
)
|
||||
|
||||
|
||||
4
go.sum
4
go.sum
@@ -1,7 +1,7 @@
|
||||
github.com/yuin/goldmark/v2 v2.1.16 h1:MXvCVo+Cb2SVJ5cwJUzXetDjI7HECRJCkcqylEQtcJo=
|
||||
github.com/yuin/goldmark/v2 v2.1.16/go.mod h1:G6M4/qOFtfn01/o14BU1UR2Lo5N3S9Qo7xCuz/sHjGQ=
|
||||
go.maximumdirect.net/releasekit v0.10.0 h1:3GOgaIigXTkvYaRkntWZASE//2NTR1+IhkoKmt64aJo=
|
||||
go.maximumdirect.net/releasekit v0.10.0/go.mod h1:cT5NZNEcf7SKDx4MPG40YNK9V4bNyIxcLLFuNlbGQ90=
|
||||
go.maximumdirect.net/releasekit v0.11.0 h1:QjRfi+DLwMdRASkQf0pAA17nzWZ+LMk5qZg6Oj9SJQU=
|
||||
go.maximumdirect.net/releasekit v0.11.0/go.mod h1:cT5NZNEcf7SKDx4MPG40YNK9V4bNyIxcLLFuNlbGQ90=
|
||||
go.yaml.in/yaml/v4 v4.0.0 h1:/LG1pNO84Z4l603j/xMn69CcS5OYhMQ/f7l2LoQUGuw=
|
||||
go.yaml.in/yaml/v4 v4.0.0/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0=
|
||||
golang.org/x/mod v0.43.0 h1:MFuq5J6s35W9D3IjkwyWc9vHh0nENOrt5K8Iof4ofmg=
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
"base_url": "https://forge.maximumdirect.net",
|
||||
"owner": "base-layer",
|
||||
"repository": "configkit",
|
||||
"token_file": ".releasekit/gitea-token"
|
||||
"credentials": {
|
||||
"local": {"token_file": ".releasekit/gitea-token"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user