This is from stackoverflow -
At work we can't do downloads directly from internet but must go through a local proxy based on artifactory. I have specified GOPROXY (GOPROXY=https://repo.mycompany.se/artifactory/api/go/gocenter) to a proxy setup in our local artifactory. When running "go get" the download goes ok what I can see but the checksum verification fails as go try to use sum.golang.org directly instead of getting the checksum through the proxy.
C:\Users\x\go\src\hello2>go get firstname.lastname@example.org go: finding rsc.io v1.5.2 go: downloading rsc.io/quote v1.5.2 verifying email@example.com: firstname.lastname@example.org: Get https://email@example.com: dial tcp: lookup sum.golang.org: no such host
Link to the stackoverflow - https://stackoverflow.com/questions/58410493/local-artifactory-golang-proxy-and-checksum-verification