...
1# golang.org/issue/29591: 'go get' was following plain-HTTP redirects even without -insecure (now replaced by GOINSECURE).
2# golang.org/issue/61877: 'go get' would panic in case of an insecure redirect in module mode
3
4[!git] skip
5
6env GOPRIVATE=vcs-test.golang.org
7
8! go get -d vcs-test.golang.org/insecure/go/insecure
9stderr 'redirected .* to insecure URL'
10
11[short] stop 'builds a git repo'
12
13env GOINSECURE=vcs-test.golang.org/insecure/go/insecure
14go get -d vcs-test.golang.org/insecure/go/insecure
15
16-- go.mod --
17module example
18go 1.21
19
View as plain text