channelcheck

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL