faq: remove old stament about go.sum retaining checksums for removed dependencies

thepudds 2021-08-04 14:51:09 -04:00
parent 01ac636619
commit e93463d3e8

@ -900,8 +900,6 @@ No, `go.sum` is not a lock file. The `go.mod` files in a build provide enough in
For validation purposes, `go.sum` contains the expected cryptographic checksums of the content of specific module versions. See the [FAQ below](https://github.com/golang/go/wiki/Modules#should-i-commit-my-gosum-file-as-well-as-my-gomod-file) for more details on `go.sum` (including why you typically should check in `go.sum`) as well as the ["Module downloading and verification"](https://tip.golang.org/cmd/go/#hdr-Module_downloading_and_verification) section in the tip documentation.
In part because `go.sum` is not a lock file, it retains cryptographic checksums for module versions even after you stop using a module or particular module version. This allows validation of the checksums if you later resume using something, which provides additional safety.
In addition, your module's `go.sum` records checksums for all direct and indirect dependencies used in a build (and hence your `go.sum` will frequently have more modules listed than your `go.mod`).
### Should I commit my 'go.sum' file as well as my 'go.mod' file?