vendorhash

command
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

vendorhash maintains the Nix SRI hash for the Go module vendor tree and stores it in flakehashes.json alongside a content fingerprint of go.mod and go.sum.

Each block records its input fingerprint (goModSum) so that re-runs with no input change are essentially free: the fast path is just a sha256 over two small files. The vendor tree is only re-walked when the fingerprint actually drifts.

Subcommands:

vendorhash check   exit non-zero if flakehashes.json is stale
vendorhash update  recompute and rewrite flakehashes.json

The JSON schema and [goModFingerprint] algorithm mirror upstream tailscale's tool/updateflakes so a future shared library extraction is straightforward.

Jump to

Keyboard shortcuts

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