Involved Source Fileschecksum.go Package modsum computes Go module zip and go.mod checksums locally from VCS
tracked files and rewrites dependent go.mod and go.sum contents in-process.rewrite.go
Package-Level Type Names (total 4, in which 2 are exported)
Package-Level Functions (total 8, in which 4 are exported)
Compute is a convenience wrapper around ComputeFS backed by os.DirFS(rootDir).
ComputeFS builds the canonical Go module zip for (modPath, ver) entirely in
memory from fsys and computes both h1: checksums without touching disk or
contacting any Go module proxy.
RewriteModule updates go.mod and go.sum bytes in memory for all required
modules present in updates.
UpdateModule reads go.mod and go.sum from modAbsDir, applies RewriteModule,
and writes back only the files that changed.