This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-12
Channels
- # aleph (1)
- # beginners (81)
- # boot (20)
- # cider (46)
- # cljs-dev (6)
- # cljsjs (6)
- # cljsrn (8)
- # clojars (2)
- # clojure (104)
- # clojure-berlin (3)
- # clojure-italy (4)
- # clojure-losangeles (2)
- # clojure-nl (16)
- # clojure-spec (16)
- # clojure-uk (28)
- # clojurescript (88)
- # core-logic (31)
- # cursive (8)
- # data-science (3)
- # datascript (1)
- # datomic (95)
- # docs (1)
- # emacs (6)
- # figwheel-main (24)
- # fulcro (106)
- # graphql (5)
- # hyperfiddle (2)
- # midje (2)
- # nrepl (1)
- # off-topic (14)
- # om-next (1)
- # parinfer (2)
- # pedestal (26)
- # portkey (2)
- # re-frame (11)
- # reagent (27)
- # ring (6)
- # rum (4)
- # shadow-cljs (33)
- # spacemacs (10)
- # specter (53)
- # tools-deps (17)
- # vim (31)
I’m working on some tools.deps testing, and I can’t figure this out. I’m calling resolve-deps
like this:
(resolve-deps
{:deps {'local {:local/root "/Users/colin/dev/tools-deps-test/library"}}}
nil)
That deps.edn
looks like this:
~/d/cursive (deps)> cat /Users/colin/dev/tools-deps-test/library/deps.edn
{:deps {org.clojure/tools.gitlibs {:git/url ""
:sha "cab6abf0122cffb9e6b947c838458c69a0992031"}}}
What I’m getting back in my lib map includes this:
local {:local/root "/Users/colin/dev/tools-deps-test/library",
:deps/manifest :deps,
:deps/root "/Users/colin/dev/tools-deps-test/library",
:paths []},
This works:
(let [deps (reader/merge-deps [(reader/slurp-deps "/usr/local/Cellar/clojure/1.9.0.381/deps.edn")
(reader/slurp-deps "/Users/colin/.clojure/deps.edn")
(-> {:deps {'local {:local/root "/Users/colin/dev/tools-deps-test/library"
:deps/manifest :deps}}}
(#'reader/canonicalize-all-syms))])]
(resolve-deps deps nil))
It seems tools-deps suffixes all Git deps with each path in my :paths
vector. If I have ["src" "foo1" "foo2"]
for my :paths
, the output of clj -Spath
will suffix each Git dependency with each path. i.e. /Users/kenny/.gitlibs/libs/lib1/lib1/f31e19ffe371a60f0474759451dba9b88bf7ef04/src:/Users/kenny/.gitlibs/libs/lib1/lib1/f31e19ffe371a60f0474759451dba9b88bf7ef04/foo1:/Users/kenny/.gitlibs/libs/lib1/lib1/f31e19ffe371a60f0474759451dba9b88bf7ef04/foo2
. Is this intentional?
I believe it's https://dev.clojure.org/jira/browse/TDEPS-52