Documentation
¶
Overview ¶
Package release holds no production code. It exists for the lock test in release_lock_test.go, which keeps the CI workflows exercising exactly the build that .goreleaser.yaml publishes.
Why a lock and not a convention: the binary users download is built with the grammar_subset build tags and for four targets, darwin/arm64 among them. For the whole 0.2 line and v0.3.0-alpha.1, CI tested an untagged build for three targets and the release workflow ran no tests at all, so nothing ever compiled or tested what was published. The workflows now name the release tags and targets once, in a workflow-level env, and the lock fails when that copy drifts from .goreleaser.yaml (or from the Makefile TAGS the goreleaser comment says to keep in sync), when a workflow step stops using it, or when the release job can publish without a passing test job in front of it.
Status: BUILT. What the lock does NOT read is declared on each parser in the test file: it fails loudly on those shapes instead of comparing nothing.