github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_sum_replaced.txt (about) 1 env GO111MODULE=on 2 3 # After 'go get -d', the go.sum file should contain the sum for the module. 4 go get -d rsc.io/quote@v1.5.0 5 grep 'rsc.io/quote v1.5.0' go.sum 6 7 # If we replace the module and run 'go mod tidy', we should get a sum for the replacement. 8 go mod edit -replace rsc.io/quote@v1.5.0=rsc.io/quote@v1.5.1 9 go mod tidy 10 grep 'rsc.io/quote v1.5.1' go.sum 11 cp go.sum go.sum.tidy 12 13 # 'go mod vendor' should preserve that sum, and should not need to add any new entries. 14 go mod vendor 15 grep 'rsc.io/quote v1.5.1' go.sum 16 cmp go.sum go.sum.tidy 17 18 -- go.mod -- 19 module golang.org/issue/27868 20 21 require rsc.io/quote v1.5.0 22 23 -- main.go -- 24 package main 25 26 import _ "rsc.io/quote" 27 28 func main() {}