Unable to get repository on glide install

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.

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

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

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

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 :frowning:

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