Join GitHub today
cmd/go: get -insecure not supported in modules #27049
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
changed the title from
cmd/go: `go get -insecure` not supported in modules?
cmd/go: get -insecure not supported in modules
Aug 17, 2018
Yes, the problem is that lots of commands now fetch from the network, so either we need to make them all accept -insecure and teach people to use it always (very sad) or else find a different way forward.
I'd like to hear more about what people use -insecure for, especially now that SSL certs are free.
Thank you for the reference. I understood the current status.
We are using a GitLab server on a private network with private domain name such as gitlab.internal.mycompany.com.
OK, that was just a bug. get -insecure will work. Automatic download during 'go build' will always use secure mode, so you'll just have to run go get more often than you might otherwise. (The same amount as with GOPATH, but everyone else will be running it less with modules.)
referenced this issue
Aug 20, 2018
added a commit
Dec 4, 2018
@rsc my issue with