# Unable to get repository on glide install

**URL:** <https://discuss.circleci.com/t/unable-to-get-repository-on-glide-install/13772>\
**Category:** Bug Reports\
**Tags:** git, golang\
**Created:** [June 27, 2017, 11:06am UTC](https://discuss.circleci.com/t/unable-to-get-repository-on-glide-install/13772 "2017-06-27T11:06:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![torbjornvatn](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/torbjornvatn/32/15736_2.png) [@torbjornvatn](https://discuss.circleci.com/u/torbjornvatn)\
**Post date:** [June 27, 2017, 11:06am UTC](https://discuss.circleci.com/t/unable-to-get-repository-on-glide-install/13772/1 "2017-06-27T11:06:55Z")

</div>

Since yesterday my one of my Golang builds (Circle 2.0) has started to fail on the `glide install` step with error messages like this:

```
[WARN]	Unable to checkout github.com/jessevdk/go-flags
[ERROR]	Update failed for github.com/jessevdk/go-flags: Unable to get repository

```

I’ve also tried to log into the build container with ssh and run `git clone git@github.com:jessevdk/go-flags` which also fails. `git clone https://github.com/jessevdk/go-flags` works though.  
Could it be som kind of ssh issue?

I also reran one of the successful builds from yesterday and it also fails now.

---

<div class="post-metadata">

**Author:** ![torbjornvatn](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/torbjornvatn/32/15736_2.png) [@torbjornvatn](https://discuss.circleci.com/u/torbjornvatn)\
**Post date:** [June 27, 2017, 12:45pm UTC](https://discuss.circleci.com/t/unable-to-get-repository-on-glide-install/13772/2 "2017-06-27T12:45:51Z")

</div>

And when I enable debugging I can see that the underlying cause is `ssh: Could not resolve hostname github.com:: Name or service not known`

---

<div class="post-metadata">

**Author:** ![torbjornvatn](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/torbjornvatn/32/15736_2.png) [@torbjornvatn](https://discuss.circleci.com/u/torbjornvatn)\
**Post date:** [June 27, 2017, 1:15pm UTC](https://discuss.circleci.com/t/unable-to-get-repository-on-glide-install/13772/3 "2017-06-27T13:15:04Z")

</div>

Dug some more and found out that the

```
[url "git@github.com:"]
insteadOf = https://github.com/

```

part of ~/.gitconfig is the problem. I also found this old topic about someone having the same problem for about a year ago using Circle 1.0 [Bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/carhartl/jquery-cookie.git", exit code of #128 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exi](https://discuss.circleci.com/t/bower-ecmderr-failed-to-execute-git-ls-remote-tags-heads-https-github-com-carhartl-jquery-cookie-git-exit-code-of-128-fatal-could-not-read-from-remote-repository-please-make-sure-you-have-the-correct-access-rights-and-the-repository-exi/3591)

Why are you adding this config to all the build containers, and why did it stop working over night without me changing anything?

---

<div class="post-metadata">

**Author:** ![bugs](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/bugs/32/14008_2.png) [@bugs](https://discuss.circleci.com/u/bugs)\
**Post date:** [June 27, 2017, 9:44pm UTC](https://discuss.circleci.com/t/unable-to-get-repository-on-glide-install/13772/4 "2017-06-27T21:44:41Z")

</div>

The change is likely introduced due to avoiding extra “download over http” dependencies instead of using git. I was exploring the same thing the other day for a few of my own packages.

Can’t really say why it fails though ☹

---

<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:** [August 8, 2017, 1:44pm UTC](https://discuss.circleci.com/t/unable-to-get-repository-on-glide-install/13772/5 "2017-08-08T13:44:48Z")

</div>

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.
