blob: accd9f373deb0e59c4ca10ee18c2c690ee508b2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Ensure that we generate a vendor/modules.txt file even when the only
# requirements in go.mod are unused. Regression test for
# golang.org/issue/36580
env GO111MODULE=on
go mod vendor
cmp go1.14-modules.txt vendor/modules.txt
-- go.mod --
module example.com/m
go 1.14
require example.com v1.0.0 // indirect
-- go.sum --
example.com v1.0.0/go.mod h1:WRiieAqDBb1hVdDXLLdxNtCDWNfehn7FWyPC5Oz2vB4=
-- go1.14-modules.txt --
# example.com v1.0.0
## explicit
|