modulesize

command
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Modulesize gates the root module zip that `go install github.com/MichaelKinsy/PiG/cmd/pig@<version>` downloads.

It lists the tracked files with Go's module zip rules (golang.org/x/mod/zip, as automation/release/modulehash does), sums their uncompressed bytes, and fails above the committed budget with the largest files and directories. With -install it also builds the module zip, serves it through a file:// GOPROXY, and runs `go install ./cmd/pig` from that zip, so a missing go:embed target, a replace directive, or an oversized tree fails here and not after publication.

Jump to

Keyboard shortcuts

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