This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-18
Channels
- # adventofcode (62)
- # aws (5)
- # beginners (59)
- # calva (63)
- # cider (26)
- # cljdoc (1)
- # cljsrn (22)
- # clojure (99)
- # clojure-austin (1)
- # clojure-dev (19)
- # clojure-europe (4)
- # clojure-hamburg (2)
- # clojure-italy (3)
- # clojure-nl (23)
- # clojure-spec (2)
- # clojure-uk (85)
- # clojurescript (41)
- # core-async (17)
- # cursive (20)
- # data-science (11)
- # datascript (2)
- # datomic (31)
- # emacs (7)
- # figwheel (28)
- # figwheel-main (12)
- # graphql (2)
- # hyperfiddle (3)
- # juxt (1)
- # kaocha (2)
- # leiningen (5)
- # nrepl (13)
- # off-topic (45)
- # pathom (13)
- # pedestal (11)
- # re-frame (20)
- # reagent (10)
- # shadow-cljs (92)
- # spacemacs (9)
- # sql (39)
- # tools-deps (32)
- # unrepl (3)
Error could be more informative for sure
https://github.com/seancorfield/dot-clojure updated now that 1.10 has dropped:
(! 528)-> clj -A:master
Clojure 1.11.0-master-SNAPSHOT
user=>
🙂in the case of a local dep it’s a directory relative to :local/root
It doesn't appear to work for local/root. I get the following message:
Error resolving /home/kenny/compute_software/app-ions: Manifest type not detected when finding deps for compute/alerts-api in coordinate {:local/root "../alerts", :deps/root "api", :sha "ca8f741dd264fa13a900cb1d283e32a21f4c21c8"}
the message is saying that it’s looking for a manifest file (deps.edn or pom.xml) at the specified location and not finding one
it’s looking at <:local/root>/<:deps/root>
so it should be looking for ../alerts/api/deps.edn here
well, the question is where .. is relative to
currently, it’s always relative to the current directory of wherever you are running
not the relative directory of whatever is depending on it
this is a known issue with local roots and relative dirs
I feel like I’m missing important parts of the problem description here so just kind of guessing
Oh, right - that's gotta be it. This message is coming from a Cursive project. It's gotta be running it in the root directory instead of sub-directory where the project's deps.edn is located.
Actually that's not correct.
pwd
/home/kenny/compute_software/app-ions
clj -A:dev -Spath
Error building classpath. Manifest type not detected when finding deps for compute/alerts-api in coordinate {:local/root "../alerts", :deps/root "api", :sha "ca8f741dd264fa13a900cb1d283e32a21f4c21c8"}
> so it should be looking for ../alerts/api/deps.edn here And that file exists:
ls ../alerts/api/deps.edn
../alerts/api/deps.edn
I am not sure, but I suspect that coordinate results in it looking for /home/kenny/compute_software/app-ions/api/../alerts/
unless I am confused again https://github.com/clojure/tools.deps.alpha/blob/master/src/main/clojure/clojure/tools/deps/alpha/extensions/local.clj#L27-L31 would need to include :deps/root in path (instead of the empty string) in order to detect the deps.edn in :deps/root
you’re not using that function
oh, yep, further confusion, that looks like it does that kind of resolution, but then doesn't appear to actually be called anywhere in tools.deps
the manifest is being found in https://github.com/clojure/tools.deps.alpha/blob/master/src/main/clojure/clojure/tools/deps/alpha/extensions/local.clj#L33-L38 which will fall into the last case and call https://github.com/clojure/tools.deps.alpha/blob/master/src/main/clojure/clojure/tools/deps/alpha/extensions.clj#L21-L29
but I will actually go back and say it’s not combining the two paths - it’s really just using :local/root
I was misremembering the code that’s in the git extension