Golang `go get` github repo wrong URL

Hello,

My company is trying to use circleci for continuous integration. The projects of it are developed in go on Github.com.
When the hook for go get fires off, the URLs to the repositories are wrong or not working in the build environment.
The script (or the go utilities) uses github.com/organization/private-repo instead of github.com/organization/private-repo.git as repository urls. Github then reports an error that the repository can not be found. Cloning the repos with .git works just fine, as is using go get with the repository URL ending in .git. I think this might be a problem with the build environment. Using go get without the URL ending in .git works fine on my workstation and those of other developers. Please advise (or upgrade the golang version, if that fixes the issue).

Regards,
Thermus

1 Like