# Golang \`go get\` github repo wrong URL

**URL:** <https://discuss.circleci.com/t/golang-go-get-github-repo-wrong-url/4124>\
**Category:** Build Environment\
**Tags:** go, github, ssh\
**Created:** [May 20, 2016, 7:11pm UTC](https://discuss.circleci.com/t/golang-go-get-github-repo-wrong-url/4124 "2016-05-20T19:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thermus](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Thermus](https://discuss.circleci.com/u/Thermus)\
**Post date:** [May 20, 2016, 7:11pm UTC](https://discuss.circleci.com/t/golang-go-get-github-repo-wrong-url/4124/1 "2016-05-20T19:11:58Z")

</div>

Hello,

My company is trying to use circleci for continuous integration. The projects of it are developed in go on [Github.com](http://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](http://github.com/organization/private-repo) instead of [github.com/organization/private-repo.git](http://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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/golang-go-get-github-repo-wrong-url/4124/2 "2018-06-18T11:38:22Z")

</div>


