I'm having problems with git deps with tools-deps on CircleCI: https://clojurians.slack.com/archives/C6QH853H8/p1606646296088500
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"]}}}
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
The same deps.edn works well on AppVeyor
$ 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!- run:
name: Get rid of erroneous git config
command: |
rm -rf /home/circleci/.gitconfig
fixes my problem...Ah yes, I believe other ecosystems (like Go) need the reverse for private deps to work
I didn’t realise we baked that in. Which image are you using?
@glenjamin https://app.circleci.com/pipelines/github/babashka/babashka.curl/5/workflows/d90fe806-57a4-4c12-bfb3-0277ff1c5be2/jobs/16
That's openjdk-8-lein, but also happens on 11 / buster