Files
releasekit/docs/releases/v0.11.0.md

7.3 KiB

ReleaseKit v0.11.0

ReleaseKit adds general source releases, calendar versions, configuration readiness checks, and an optional rehearsal of the actual Woodpecker delivery workflow. This release also separates local and CI delivery credentials and extends saved evidence to carry the selected source and version identity. The Go minimum remains 1.27.0; release builds and validation use Go 1.27.4.

New capabilities

  • Release repositories and source directories without an application go.mod, including configuration-only products. Select Go validation and builds independently from Go module publication. Go applications can publish source releases whose product version is independent of their module path major.
  • Choose stable SemVer, Gregorian date versions, or year-month versions. Calendar identifiers, optional prefixes, and source tag prefixes flow through candidate checks, publication, notes, version injection, artifact names, hosted delivery, and recovery. Go module publication retains Go's prefixed SemVer and module-major rules. ReleaseKit's own releases continue using SemVer.
  • Run releasekit validate before selecting a release version or writing a release note. It inspects selected configuration, source/build inputs, credentials, and read-only remote access. Operation selection and offline mode narrow its scope. It does not execute product checks, build binaries, download dependencies, or establish actual CI secret injection.
  • Run releasekit test to dispatch a temporary diagnostic tag through the configured Woodpecker workflow. The actual job delivers and reads back the page and any declared binary/checksum contents. Separate workflow, build, verification, and cleanup outcomes retain safe job diagnostics. Private attempt records support explicit test-resume and test-cleanup recovery. Cleanup waits for observable CI quiescence and removes owned diagnostic resources; CI history, notifications, and webhook effects remain.
  • Source-only launchers and CI bootstrap share a committed .releasekit-version pin and retain a host executable for later recovery. The root Go facade adds SourceSpec, Validate, Rehearse, ResumeRehearsal, CleanupRehearsal, and DeliverRehearsal, with facade-owned requests, results, and source evidence.

Read the configuration reference, readiness guide, and rehearsal guide for the supported settings, version grammars, and operational boundaries.

Correctness and efficiency

Readiness shares operation-specific configuration checks with execution, preserves local required files when inspecting captured source, and supports Go's gopkg.in unstable-major paths. Go package patterns remain available to the builder and are reported as unresolved during readiness rather than treated as literal directories. Package-input inspection scopes committed metadata to the selected directory and scans working entries in bounded batches.

Rehearsal recovery distinguishes definite push rejection from uncertain writes, permits cleanup of a known matching page after its tag is already absent, and retains the explicit forge selection. Diagnostic CI delivery uses the public orchestration facade and ordinary delivery error classifications. Production tags sharing the diagnostic namespace prefix retain their production routing. CI pagination tolerates consistent overlaps, pipeline membership uses an index, and result parsing discards ordinary log fragments without retaining entire long lines.

Compatibility and upgrade guidance

  1. Upgrade each consuming Go module to v0.11.0 with go get go.maximumdirect.net/releasekit@v0.11.0, or register/upgrade its CLI with go get -tool go.maximumdirect.net/releasekit/cmd/releasekit@v0.11.0. Run go mod tidy, regenerate vendored dependencies when applicable, and commit the module changes. A standalone CLI can use go install go.maximumdirect.net/releasekit/cmd/releasekit@v0.11.0.
  2. Move delivery.token_file to delivery.credentials.local.token_file and delivery.token_env to delivery.credentials.ci.token_environment_variable. The former flat fields are rejected. Local delivery and rehearsal use the selected token file; ci-deliver uses the selected job environment variable. An empty CI declaration selects RELEASEKIT_DELIVERY_TOKEN. Keep existing secret and variable names by configuring them explicitly. Neither context falls back to the other; missing, unreadable, or blank selected credentials are errors. Go API callers continue supplying tokens explicitly.
  3. Existing profiles with all four selection objects (source, go, publication, and version) omitted or null retain Go-module publication and prefixed stable SemVer. Go API requests with Source: nil retain the ModuleDir shorthand. Any non-null profile selection object chooses the explicit model: declare go: {} for Go checks/builds and publication.mode: "go-module" for Go module publication. An explicit source: {} or zero SourceSpec selects a root source release with Go disabled. Update callbacks that handle source-only candidates to use source identity; their Go module identity is empty.
  4. Update copied workflows together with the selected tool. Source-only repositories can pin v0.11.0 in .releasekit-version. Multi-product selector maps now have four columns: selector, production tag pattern, tool module directory, and profile path. The - tool-module value selects the installed pinned tool. Align production tag filters with the selected version format. To enable rehearsal, add diagnostic dispatch and matching selector/profile routing, declare CI delivery credentials, and configure the separate local Woodpecker token and exact repository/workflow/step. Native Git credentials and the local forge token need diagnostic deletion permissions. Rehearsal remains optional and does not change production source-publication completion.
  5. Rebuild retained artifacts before deliver --assets: build receipts now use schema 2 and older schemas are rejected. Newly saved publication records use format 3; versions 1 and 2 remain readable with their captured evidence. Older tools cannot read the new format. Continue selecting exact records for recovery; publication records and rehearsal records are separate.

The adoption guide and maintained examples cover tool registration, source-only installation, and coordinated workflow upgrades. The receipt and publication record references describe the evidence formats.

COPYRIGHT | LICENSE | ATTRIBUTION