src/cmd/go/testdata/script/get_insecure_no_longer_supported.txt
raw| 1 | # GOPATH: Set up |
| 2 | env GO111MODULE=off |
| 3 | |
| 4 | # GOPATH: Fetch with insecure, should error |
| 5 | ! go get -insecure test |
| 6 | stderr 'go: -insecure flag is no longer supported; use GOINSECURE instead' |
| 7 | |
| 8 | # Modules: Set up |
| 9 | env GO111MODULE=on |
| 10 | |
| 11 | # Modules: Fetch with insecure, should error |
| 12 | ! go get -insecure test |
| 13 | stderr 'go: -insecure flag is no longer supported; use GOINSECURE instead' |