-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: all commands that can fetch dependencies should accept the insecure flag #32104
Comments
See previously #27332 (comment) (CC @FiloSottile @jayconrod). |
I really don't want people putting I could maybe buy the need for a |
AFAICS, if I guess it might be possible to allow insecure downloads only if the download can be fully checked by a local |
How about a GOINSECURE env variable similar to GONOPROXY and GONOSUMDB (https://go.googlesource.com/proposal/+/master/design/25530-sumdb.md). That way you could selectively disable https for specific urls, and remain secure by default? |
I tend to agree much more with a Please open a proposal issue for
|
As of Go 1.14, all command that can fetch dependencies should now support the Given @rogpeppe, do you have any remaining use-cases that |
@bcmills not that i've found. thanks for addressing this! |
go version devel +2e4edf4697 Sun May 12 07:14:09 2019 +0000 linux/amd64
When trying to work around issue #32071, I realised that although almost all of the go subcommands can download dependencies now, you can't allow insecure fetching.
The
go get
command supports insecure fetching but there's no easy way to make it use the version specified in the current module AFAICS.Alternatively, it may be sufficient just to add an insecure flag to
go mod download
.The text was updated successfully, but these errors were encountered: