aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/get_insecure_deprecated.txt
blob: 7f5f5c7877e6a3b84e40f9544491393bf823f087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# GOPATH: Set up
env GO111MODULE=off

# GOPATH: Fetch without insecure, no warning
! go get test
! stderr 'go get: -insecure flag is deprecated; see ''go help get'' for details'

# GOPATH: Fetch with insecure, should warn
! go get -insecure test
stderr 'go get: -insecure flag is deprecated; see ''go help get'' for details'

# Modules: Set up
env GO111MODULE=on

# Modules: Fetch without insecure, no warning
! go get test
! stderr 'go get: -insecure flag is deprecated; see ''go help get'' for details'

# Modules: Fetch with insecure, should warn
! go get -insecure test
stderr 'go get: -insecure flag is deprecated; see ''go help get'' for details'