GOPROXY=direct go get
⸺ by Charles Iliya Krempeaux
⸺ published 2021-11-08T19:57:40-08:00
For the Go‐programming‐language, to turn-off and disable GOPROXY, for the “go” command's “go get” sub-command, call it with GOPROXY="direct" as follows:
GOPROXY="direct" go get <url>
So, for example:
GOPROXY="direct" go get https:example.com/path/to/repo