Documentation
¶
Overview ¶
Command channelcheck checks the Homebrew cask and the Scoop manifest of a GoReleaser bin/release/ directory against its checksums.txt (Story 4.4).
Cask (bin/release/homebrew/Casks/tokenhound.rb): the version equals the build version; darwin arm64 and amd64 (and linux, when present) each have a release URL to their archive and the sha256 listed in checksums.txt; the binary is "tokenhound"; the only hook is a macOS postflight step that removes the quarantine attribute from the staged binary. Any other line (another hook, caveats, a dependency, Ruby code) fails.
Scoop: the manifest rendered from dist/scoop/tokenhound.json.tmpl (or the file given by -scoop) has the version, the windows amd64 ("64bit") and arm64 URLs and hashes from checksums.txt and bin "tokenhound.exe", and no other data.
Usage: go run ./tools/channelcheck [-version X.Y.Z] [-template file] [-scoop file] [dir]
The version defaults to bin/release/metadata.json. -template and -scoop cannot be combined. Each problem is printed as "file:line: message". Exit codes: 0 pass, 1 at least one problem (a malformed checksums.txt included), 2 usage or unreadable input.