vendorhash

command
v0.29.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: BSD-3-Clause Imports: 9 Imported by: ? 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

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