Standard librarycmd/distpack

distpack command

Distpack creates the tgz and zip files for a Go distribution. It writes into GOROOT/pkg/distpack:

Distpack is typically invoked by the -distpack flag to make.bash. A cross-compiled distribution for goos/goarch can be built using:

GOOS=goos GOARCH=goarch ./make.bash -distpack

To test that the module downloads are usable with the go command:

./make.bash -distpack
mkdir -p /tmp/goproxy/golang.org/toolchain/
ln -sf $(pwd)/../pkg/distpack /tmp/goproxy/golang.org/toolchain/@v
GOPROXY=file:///tmp/goproxy GOTOOLCHAIN=$(sed 1q ../VERSION) gotip version

gotip can be replaced with an older released Go version once there is one. It just can't be the one make.bash built, because it knows it is already that version and will skip the download.

Version
v1.24.0 (latest)
Published
Feb 10, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
1 minute ago

Tools for package owners.