Text file src/cmd/go/testdata/script/get_insecure_update.txt
1 [!net] skip 2 [!exec:git] skip 3 env GO111MODULE=off 4 5 # Clone the repo via HTTP manually. 6 exec git clone -q http://github.com/golang/example github.com/golang/example 7 8 # Update without GOINSECURE should fail. 9 # We need -f to ignore import comments. 10 ! go get -d -u -f github.com/golang/example/hello 11 12 # Update with GOINSECURE should succeed. 13 env GOINSECURE=github.com/golang/example/hello 14 go get -d -u -f github.com/golang/example/hello 15