Add pinned tools for source-only releases
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
# Adopt ReleaseKit
|
||||
|
||||
Use a versioned Go tool dependency when ReleaseKit provides the repository's
|
||||
release commands. This records the CLI in `go.mod` and keeps it available to
|
||||
maintainers without adding imports to application or library code.
|
||||
Use a versioned Go tool dependency when a Go module provides the repository's
|
||||
release commands. Source-only repositories can instead use the installed-tool
|
||||
launcher described below.
|
||||
|
||||
## Source-only repositories
|
||||
|
||||
The [source-only example](../../examples/source-only/README.md) provides a
|
||||
profile, local launcher, and tag-verified Woodpecker workflow without requiring
|
||||
an application `go.mod`. Commit a root `.releasekit-version` containing one
|
||||
stable ReleaseKit module version. Select a published version implementing the
|
||||
profile and workflow; the example's current pin illustrates syntax and must be
|
||||
updated when the next release is available.
|
||||
|
||||
The maintained installer uses the same committed pin locally and in CI,
|
||||
installs the host executable in the ignored `.releasekit/tools` directory,
|
||||
and preserves Go proxy and checksum settings. A failed install does not leave a
|
||||
usable partial executable. The durable executable also supports the exact
|
||||
publication-recovery command printed after an uncertain push.
|
||||
|
||||
## CLI tool dependency
|
||||
|
||||
|
||||
@@ -388,6 +388,13 @@ SSH-agent authentication without a private-key file, and no remote writes.
|
||||
|
||||
## Stage 8: Supply one tool pin for source-only repositories
|
||||
|
||||
**Completed:** Source-only launchers install and retain a host-specific pinned
|
||||
tool, and the tagged workflow selects the pin after verifying the event commit.
|
||||
The documented `v0.10.0` pin remains a syntax placeholder for this sprint.
|
||||
Isolated local-proxy tests exercise current-source installation, delivery,
|
||||
failure cleanup, pin changes, and recovery without Go after launcher exit. The
|
||||
offline `go test ./...` suite and `go run ./internal/apicheck` pass.
|
||||
|
||||
**Work:** add maintained source-only launcher/bootstrap examples and shared
|
||||
installation guidance; extend recovery tooling where needed.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user