Fork me on GitHub
#circleci
<
2020-11-29
>
borkdude10:11:01

I'm having problems with git deps with tools-deps on CircleCI: https://clojurians.slack.com/archives/C6QH853H8/p1606646296088500

borkdude11:11:38

I have this deps.edn:

{:aliases {:json {:extra-deps {cheshire/cheshire {:mvn/version "5.10.0"}}}
           :test {:extra-paths ["test"]
                  :extra-deps {cheshire./cheshire {:mvn/version "5.10.0"}
                               cognitect-labs/test-runner
                               {:git/url ""
                                :sha "cb96e80f6f3d3b307c59cbeb49bb0dcb3a2a780b"}}
                  :main-opts ["-m" "cognitect.test-runner"]}}}

borkdude11:11:50

and I'm getting:

script/test
Cloning: 
Error building classpath. : Auth fail
org.eclipse.jgit.api.errors.TransportException: : Auth fail

borkdude11:11:51

The same deps.edn works well on AppVeyor

borkdude11:11:52

$ cat /home/circleci/.gitconfig
[url ""]
	insteadOf = 
[gc]
	auto = 0
This seems to cause it. But why is this there!

borkdude11:11:55

- run:
          name: Get rid of erroneous git config
          command: |
              rm -rf /home/circleci/.gitconfig
fixes my problem...

glenjamin11:11:58

Ah yes, I believe other ecosystems (like Go) need the reverse for private deps to work

3
glenjamin11:11:38

I didn’t realise we baked that in. Which image are you using?

borkdude11:11:45

That's openjdk-8-lein, but also happens on 11 / buster