aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_convert_tsv_insecure.txt
blob: 283e2d99366bb8c914f9b4428943355fdd286077 (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
25
26
27
28
29
env GO111MODULE=on
env GOPROXY=direct
env GOSUMDB=off

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

# secure fetch should report insecure warning
cd $WORK/test
go mod init
stderr 'redirected .* to insecure URL'

# insecure fetch should not
env GOINSECURE=*.golang.org
rm go.mod
go mod init
! stderr 'redirected .* to insecure URL'

# insecure fetch invalid path should report insecure warning
env GOINSECURE=foo.golang.org
rm go.mod
go mod init
stderr 'redirected .* to insecure URL'

-- $WORK/test/dependencies.tsv --
vcs-test.golang.org/insecure/go/insecure	git	6fecd21f7c0c	2019-09-04T18:39:48Z 

-- $WORK/test/x.go --
package x // import "m"