circleci

rm -rf /home/circleci/.gitconfig
borkdude 2020-11-29T10:52:01.021300Z

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

borkdude 2020-11-29T11:06:38.021600Z

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 "<https://github.com/cognitect-labs/test-runner>"
                                :sha "cb96e80f6f3d3b307c59cbeb49bb0dcb3a2a780b"}}
                  :main-opts ["-m" "cognitect.test-runner"]}}}

borkdude 2020-11-29T11:06:50.021900Z

and I'm getting:

script/test
Cloning: <https://github.com/cognitect-labs/test-runner>
Error building classpath. <ssh://git@github.com/cognitect-labs/test-runner>: Auth fail
org.eclipse.jgit.api.errors.TransportException: <ssh://git@github.com/cognitect-labs/test-runner>: Auth fail

borkdude 2020-11-29T11:14:51.022200Z

The same deps.edn works well on AppVeyor

borkdude 2020-11-29T11:19:52.022700Z

$ cat /home/circleci/.gitconfig
[url "<ssh://git@github.com>"]
	insteadOf = <https://github.com>
[gc]
	auto = 0
This seems to cause it. But why is this there!

borkdude 2020-11-29T11:26:55.023Z

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

glenjamin 2020-11-29T11:43:58.023800Z

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

➕ 1
glenjamin 2020-11-29T11:44:38.024400Z

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

borkdude 2020-11-29T11:51:45.024900Z

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