aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_vendor_unused_only.txt
blob: 839c6453cf825ed2cb682fae595883c088a81760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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
-- go1.14-modules.txt --
# example.com v1.0.0
## explicit