1 env GO111MODULE=on
2 env GOPROXY=direct
3 env GOSUMDB=off
4
5 [!net] skip
6 [!exec:git] skip
7
8 # secure fetch should report insecure warning
9 cd $WORK/test
10 go mod init
11 stderr 'redirected .* to insecure URL'
12
13 # insecure fetch should not
14 env GOINSECURE=*.golang.org
15 rm go.mod
16 go mod init
17 ! stderr 'redirected .* to insecure URL'
18
19 # insecure fetch invalid path should report insecure warning
20 env GOINSECURE=foo.golang.org
21 rm go.mod
22 go mod init
23 stderr 'redirected .* to insecure URL'
24
25 -- $WORK/test/dependencies.tsv --
26 vcs-test.golang.org/insecure/go/insecure git 6fecd21f7c0c 2019-09-04T18:39:48Z
27
28 -- $WORK/test/x.go --
29 package x // import "m"
30
View as plain text