release

command
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 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 release builds the prebuilt nsgo binaries a release attaches: an archive per platform and checksums.txt over them, from the checked-out commit, which must carry the tag vX.Y.Z so that Go stamps that version into each binary.

go run ./tools/release -out DIR X.Y.Z

It cross-compiles ./cmd/nsgo with CGO_ENABLED=0 and -trimpath for every platform in targets, packs each binary with LICENSE and README.md into nsgo_<version>_<os>_<arch>.tar.gz (.zip for Windows), writes checksums.txt in sha256sum's format, then reads everything back: the checksums, each archive's entries, and each binary's build information, which must name the release's version, its platform, CGO_ENABLED=0 and -trimpath. The binary for the running platform also runs nsgo version. release.yml runs it before it tags anything, and release-assets.yml runs it on pull requests that change it, so a broken build fails there rather than in a release. The asset names and layout are a contract the install script and the Homebrew tap read.

Jump to

Keyboard shortcuts

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