This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-11
Channels
- # announcements (21)
- # aws (2)
- # babashka (20)
- # beginners (47)
- # bristol-clojurians (2)
- # calva (63)
- # cider (24)
- # clj-kondo (22)
- # cljs-dev (3)
- # cljsrn (6)
- # clojars (3)
- # clojure (147)
- # clojure-europe (21)
- # clojure-france (2)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-spec (2)
- # clojure-uk (70)
- # clojurescript (37)
- # core-logic (6)
- # cursive (4)
- # data-science (2)
- # datomic (99)
- # events (1)
- # figwheel-main (20)
- # fulcro (26)
- # graalvm (6)
- # graphql (5)
- # kaocha (8)
- # leiningen (20)
- # meander (22)
- # nrepl (4)
- # off-topic (27)
- # pathom (5)
- # pedestal (3)
- # re-frame (20)
- # reagent (4)
- # shadow-cljs (43)
- # spacemacs (11)
- # tools-deps (55)
- # tree-sitter (6)
- # vim (8)
- # xtdb (18)
- # yada (14)
Hello, I'm trying to use lein-git-down
inside of my .lein/profiles.clj
profile
{:user {:plugins [[lein-pprint "1.1.1"]
[lein-ancient "0.6.15"]
[reifyhealth/lein-git-down "0.3.5"]
[lein-catapult "4fa2f909f334d2094b2885567f0f036da3518820"]]
:middleware [lein-git-down.plugin/inject-properties]
:repositories [["public-github" {:url "" :protocol :ssh}]]
:git-down {lein-catapult {:coordinates holtzermann17/lein-catapult}} ;)
:dependencies [[slamhound "1.3.1"]]
:injections [clojure.repl :refer [apropos
demunge
dir
dir-fn
doc
find-doc
pst
root-cause
set-break-handler!
source
source-fn
stack-element-str
thread-stopper]]}}
This isn't working though, I get complaints that the jar file can't be found
$ lein catapult :[email protected]:8080/repl
:repositories detected in user-level profiles! [:user]
See
Could not find artifact lein-catapult:lein-catapult:jar:4fa2f909f334d2094b2885567f0f036da3518820 in central ( )
Could not find artifact lein-catapult:lein-catapult:jar:4fa2f909f334d2094b2885567f0f036da3518820 in clojars ( )
Could not transfer artifact lein-catapult:lein-catapult:jar:4fa2f909f334d2094b2885567f0f036da3518820 from/to public-github (): Cannot access with type default using the available connector factories: BasicRepositoryConnectorFactory
Could not transfer artifact lein-catapult:lein-catapult:pom:4fa2f909f334d2094b2885567f0f036da3518820 from/to public-github (): Cannot access with type default using the available connector factories: BasicRepositoryConnectorFactory
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Same basic setup as in the .lein/profiles.clj
file seems to work fine inside of a project.clj
that I have been working on
Am I doing something wrong here?
@holtzermann17 Would need more details - it’d help to prefix your cmd with DEBUG=true
to potentially get more context of the step that is happening
but if it works in your project.clj - do you mean as a “top-level” key - ie. not in a :profiles
entry?
the .lein/profiles.clj
level is the user
profile - it’s a profile that is merged on later - perhaps merging this in at this point is too late
or perhaps the user
profile is not being included as a profile in the task you ar running
Hi @mikerod, I got the dependency to load with jitpack
so (short term) problem solved.
{:user {:plugins [[lein-pprint "1.1.1"]
[lein-ancient "0.6.15"]
[reifyhealth/lein-git-down "0.3.5"]
[com.github.holtzermann17/lein-catapult "4fa2f909f334d2094b2885567f0f036da3518820"]]
:repositories [["jitpack" ""]]
:dependencies [[slamhound "1.3.1"]]
:injections [clojure.repl :refer [apropos
demunge
dir
dir-fn
doc
find-doc
pst
root-cause
set-break-handler!
source
source-fn
stack-element-str
thread-stopper]]}}
(Viz., this works.)(not the question you asked, but I would be surprised if that didn't end up erroring)
also you can get all of those (plus pprint and javadoc) with (apply require clojure.main/repl-requires)