aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_list_direct.txt
blob: 9b7a04c5044302b4aaac7fb5b24fb6738e6bf014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
env GO111MODULE=on
env GOPROXY=direct
env GOSUMDB=off

[!net] skip
[!exec:git] skip

# golang.org/issue/33099: if an import path ends in a major-version suffix,
# ensure that 'direct' mode can resolve the package to the module.
# For a while, (*modfetch.codeRepo).Stat was not checking for a go.mod file,
# which would produce a hard error at the subsequent call to GoMod.

go get

-- go.mod --
module example.com
go 1.13

-- main.go --
package main

import _ "vcs-test.golang.org/git/v3pkg.git/v3"

func main() {}