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