Fork me on GitHub
#tools-deps
<
2021-06-02
>
λustin f(n)03:06:49

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?

λustin f(n)03:06:52

Cloning: 
org.eclipse.jgit.api.errors.TransportException: : Auth fail
 at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:248)

λustin f(n)03:06:32

My deps.edn looks like:

λustin f(n)03:06:37

{:deps {org.clojure/clojure {:mvn/version "1.10.1"}
        org.clojure/tools.deps.alpha {:mvn/version "0.8.695"}
        com.wsscode/pathom3 {:git/url ""
                             :sha "354574f6a4fbd30e54c85fa41d5bf2eb7de59a39"}}}

λustin f(n)03:06:53

And project.clj:

λustin f(n)03:06:05

(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}})

Alex Miller (Clojure team)03:06:36

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

Alex Miller (Clojure team)03:06:36

But you can modify your git config to stop doing that

lread10:06:34

Here’s the CircleCI fix many of us now use: https://clojurians-log.clojureverse.org/circleci/2021-01-17

bananadance 3