blob: b03982d9cff442648606cd83886c6c936a82b6c0 [file] [log] [blame]
env GO111MODULE=on
# After 'go get -d', the go.sum file should contain the sum for the module.
go get -d
grep ' v1.5.0' go.sum
# If we replace the module and run 'go mod tidy', we should get a sum for the replacement.
go mod edit -replace
go mod tidy
grep ' v1.5.1' go.sum
cp go.sum go.sum.tidy
# 'go mod vendor' should preserve that sum, and should not need to add any new entries.
go mod vendor
grep ' v1.5.1' go.sum
cmp go.sum go.sum.tidy
-- go.mod --
require v1.5.0
-- main.go --
package main
import _ ""
func main() {}