File: //opt/golang/1.22.0/src/cmd/go/testdata/script/mod_vendor_unused_only.txt
# 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