Add pinned tools for source-only releases

This commit is contained in:
2026-12-05 22:30:21 +00:00
parent d185df5fd1
commit 6f01e9ef0a
14 changed files with 519 additions and 4 deletions

View File

@@ -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