I am trying to use lein-tools-deps to build an uberjar that includes a :git/url dep. It works on my local machine, but not when part of a CircleCi build. Does anyone know if there is a setting or something I am missing that would fix it?
Cloning: <https://github.com/wilkerlucio/pathom3>
org.eclipse.jgit.api.errors.TransportException: <ssh://git@github.com/wilkerlucio/pathom3>: Auth fail
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:248)
My deps.edn looks like:
{:deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/tools.deps.alpha {:mvn/version "0.8.695"}
com.wsscode/pathom3 {:git/url "<https://github.com/wilkerlucio/pathom3>"
:sha "354574f6a4fbd30e54c85fa41d5bf2eb7de59a39"}}}
And project.clj:
(defproject sandbox "0.1.0-SNAPSHOT"
:main ^:skip-aot banzai.sandbox.core
:plugins [[duct/lein-duct "0.12.1"]
[lein-tools-deps "0.4.5"]]
:middleware [lein-duct.plugin/middleware
lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
:lein-tools-deps/config {:config-files [:install :user :project]}
:profiles {:uberjar {:aot :all}})
Circleci has a setting in their .git config that forces all https urls to ssh, which won’t work unless you install an ssh key etc
But you can modify your git config to stop doing that
Here’s the CircleCI fix many of us now use: https://clojurians-log.clojureverse.org/circleci/2021-01-17