Help us shape the future of Go! Take the 2026 Go Developer Survey

archive

command
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Command archive packs a directory into a .tar.gz or a .zip that depends on nothing but its input and the Go that runs it: entries in byte order, owner 0:0, one modification time for every entry, no name or time in the gzip header. hack/release.sh uses it so that a release archive rebuilt anywhere -- macOS, Linux, BSD -- with the same Go is the same bytes. The system's tar and gzip are not: Apple's gzip and GNU's compress the same tar stream to different bytes.

go run ./hack/archive -mtime 1760203143 -o out.tar.gz -C parent dir

Jump to

Keyboard shortcuts

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