Adding the following to my bashrc or doing go env -w works export GOPROXY=https://proxy.golang.org,direct
go env -w