-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: get -insecure not supported in modules #27049
Comments
go get -insecure
not supported in modules?go get -insecure
not supported in modules?
go get -insecure
not supported in modules?
It was intentional. Further reading: #25434 . |
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. |
Leaving for Go 1.12 regardless. |
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. By the way, some descriptions about current status in the release notes or Module-aware go get will also help. Espetially, I think the latter is very misleading. |
Moving back to Go 1.11. I didn't realize the module get docs said -insecure should work. |
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.) |
Change https://golang.org/cl/129801 mentions this issue: |
@rsc my issue with |
I have an issue with GitHub where using subdomain go.nanomsg.org does not properly because the certs they issue only work with www and apex domains. Sadly they don't seem to support doing this for multiple subdomains. I wish I could get a free site that hosted vanity domains for go. On GitHub it always feels really contorted. |
Same, did you find a solution to make go always ignore the certs ? |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.11rc1 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/myapp/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build371106128=/tmp/go-build -gno-record-gcc-switches"
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
go get -v -insecure example.com/my/project
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: