blob: 4f1cf0327770389511b2fb2da0f7178544cab311 [file] [log] [blame]
# When 'go get' is invoked on a module without a package in the root directory,
# it should add sums for the module's go.mod file and its content to go.sum.
# Verifies
go mod init m
go get -d
grep '^ v1.5.2/go.mod ' go.sum
grep '^ v1.5.2 ' go.sum
# Double-check does not have a root package.
! go list -mod=readonly
stderr '^cannot find module providing package import lookup disabled by -mod=readonly$'