Codebase list golang-golang-x-mod / b710602
sumdb/dirhash: correct documentation of hash The "equivalent Unix command" was missing a layer of sha256sum. Fixes golang/go#48498. Change-Id: I1051bfa5fcbbf1625623d11cf21686b33da19b88 Reviewed-on: https://go-review.googlesource.com/c/mod/+/464295 Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Russ Cox authored 1 year, 3 months ago Gopher Robot committed 1 year, 3 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3232 // Hash1 is "h1:" followed by the base64-encoded SHA-256 hash of a summary
3333 // prepared as if by the Unix command:
3434 //
35 // find . -type f | sort | sha256sum
35 // sha256sum $(find . -type f | sort) | sha256sum
3636 //
3737 // More precisely, the hashed summary contains a single line for each file in the list,
3838 // ordered by sort.Strings applied to the file names, where each line consists of