lein-git-down icon indicating copy to clipboard operation
lein-git-down copied to clipboard

Issue when running on CircleCI

Open MiyamotoAkira opened this issue 3 years ago • 2 comments

Currently I am having an issue where my build fails because of this error: (git://github.com): ssh://[email protected]/MiyamotoAkira/timbre-json-appender: Auth fail It is my first time using lein-git-down on CircleCI On project.clj I have: :repositories [["public-github" {:url "git://github.com" :protocol :https}]] so not sure why is trying to use ssh to get to the repo (which is public)

Steps:

  • Add git-lein-down on the project
  • Run from CircleCi Project.clj: This is a cut down version
(defproject blah "0.1.0-SNAPSHOT"
  :dependencies [[timbre-json-appender "ca976dcdc37d0ddf9429015667409f0d096bc93d"]]
  :plugins [[reifyhealth/lein-git-down "0.4.0"]]
  :middleware [lein-git-down.plugin/inject-properties]
  :repositories [["public-github" {:url "git://github.com" :protocol :https}]]
  :git-down {timbre-json-appender {:coordinates  MiyamotoAkira/timbre-json-appender}}
])

Other: The build happens in a dockerfile with base clojure:openjdk-16-lein, which runs lein 2.9.7 and Java 16.0.2. Clojure version is 1.10.3

When running locally I get this on the file .lein-git-down after successfully downloading the dependency:

{:uri "https://github.com/MiyamotoAkira/timbre-json-appender", 
 :mvn-coords timbre-json-appender/timbre-json-appender, 
 :rev "ca976dcdc37d0ddf9429015667409f0d096bc93d"}

MiyamotoAkira avatar Nov 14 '21 18:11 MiyamotoAkira

Hello, sorry for the delay in replying. I wasn't able to reproduce the issue with the minimal set up you describe. Here's what I did:

  • Ran docker run -it --entrypoint /bin/bash clojure:openjdk-16-lein to shell into the same image you are using
  • After installing vim, I created a new project.clj and copied your cut down version above
  • Ran lein deps to download the dependencies

Everything appeared to work and the timbre-json-appender library was downloaded from github and shows up in my .m2 cache:

# ls -l ~/.m2/repository/timbre-json-appender/timbre-json-appender/ca976dcdc37d0ddf9429015667409f0d096bc93d/
total 28
-rw-r--r-- 1 root root  302 Nov 18 20:08 _remote.repositories
-rw-r--r-- 1 root root 9491 Nov 18 20:08 timbre-json-appender-ca976dcdc37d0ddf9429015667409f0d096bc93d.jar
-rw-r--r-- 1 root root   40 Nov 18 20:08 timbre-json-appender-ca976dcdc37d0ddf9429015667409f0d096bc93d.jar.sha1
-rw-r--r-- 1 root root  843 Nov 18 20:08 timbre-json-appender-ca976dcdc37d0ddf9429015667409f0d096bc93d.pom
-rw-r--r-- 1 root root   40 Nov 18 20:08 timbre-json-appender-ca976dcdc37d0ddf9429015667409f0d096bc93d.pom.sha1

Are you seeing different behavior with the minimal version?

manderson202 avatar Nov 18 '21 20:11 manderson202

Though my specific issue is no longer in place because they updated with my PR I will try to check redo it again, to see if I can replicate the issue again.

MiyamotoAkira avatar Nov 21 '21 17:11 MiyamotoAkira