aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/get_insecure_update.txt
blob: 4511c98c568458884a97af5e3c441a47f9d0ff62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[!net] skip
[!exec:git] skip
env GO111MODULE=off

# Clone the repo via HTTP manually.
exec git clone -q http://github.com/golang/example github.com/golang/example

# Update without -insecure should fail.
# Update with -insecure should succeed.
# We need -f to ignore import comments.
! go get -d -u -f github.com/golang/example/hello
go get -d -u -f -insecure github.com/golang/example/hello