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
32 | 32 | // Hash1 is "h1:" followed by the base64-encoded SHA-256 hash of a summary |
33 | 33 | // prepared as if by the Unix command: |
34 | 34 | // |
35 | // find . -type f | sort | sha256sum | |
35 | // sha256sum $(find . -type f | sort) | sha256sum | |
36 | 36 | // |
37 | 37 | // More precisely, the hashed summary contains a single line for each file in the list, |
38 | 38 | // ordered by sort.Strings applied to the file names, where each line consists of |