tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
λustin f(n) 2021-06-02T03:04:49.079400Z

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) 2021-06-02T03:04:52.079600Z

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)

λustin f(n) 2021-06-02T03:05:32.080100Z

My deps.edn looks like:

λustin f(n) 2021-06-02T03:05:37.080300Z

{: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"}}}

λustin f(n) 2021-06-02T03:05:53.080500Z

And project.clj:

λustin f(n) 2021-06-02T03:06:05.080800Z

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

alexmiller 2021-06-02T03:33:36.082100Z

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

alexmiller 2021-06-02T03:34:36.082900Z

But you can modify your git config to stop doing that

lread 2021-06-02T10:46:34.083700Z

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

1