This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-17
Channels
- # announcements (7)
- # architecture (12)
- # babashka (5)
- # bangalore-clj (4)
- # beginners (70)
- # biff (23)
- # calva (21)
- # clojure (130)
- # clojure-bay-area (3)
- # clojure-berlin (1)
- # clojure-brasil (1)
- # clojure-europe (55)
- # clojure-finland (4)
- # clojure-greece (5)
- # clojure-nl (3)
- # clojure-norway (10)
- # clojurescript (52)
- # code-reviews (4)
- # community-development (1)
- # data-science (7)
- # datahike (6)
- # datomic (1)
- # events (1)
- # figwheel-main (7)
- # fulcro (23)
- # helix (2)
- # honeysql (32)
- # malli (18)
- # membrane (6)
- # nbb (22)
- # nyc (1)
- # off-topic (26)
- # pathom (2)
- # polylith (34)
- # quil (13)
- # releases (1)
- # remote-jobs (4)
- # scittle (1)
- # shadow-cljs (52)
- # sql (24)
- # tools-deps (17)
- # vim (11)
- # web-security (15)
- # xtdb (6)
What’s the reason paths can refer to paths above the current directory (“../“) but extra-paths can’t?
Paths outside the current directory are not support (anymore) @christian767
Hmm, ok, that’s a shame. It works in the version I’m on now 😅 What’s the reason for dropping the support?
It doesn’t make sense and security implications if you are outside if your directory (someone using this project as a git dep could be referencing arbitrary parts of your file system). If you are in a sub dir of a git dep, you can refer relatively via a local dep
Is there the right way to solve this without creating a separate repo/branch for the tool? https://github.com/liquidz/antq/issues/108
At the moment, you would need some kind of wrapper for the tool. You could either put that in a separate repo or put it in a subdir and use a git dep with a deps root and a local dep back to the root. I think that should work
But I can think about it some more
> put it in a subdir and use a git dep with a deps root and a local dep back to the root Maybe I'm misunderstanding, but doesn't it require being able to use a Git dep that's in a subdir? Is it even possible? So e.g. suppose we have
antq
- tool
- deps.edn
- deps.edn
with tool/deps.edn
being
{:deps {org.slf4j/slf4j-nop {:mvn/version "RELEASE"}
com.github.liquidz/antq {:local/root ".."}}}
How would one install antq
using tool/deps.edn
instead of deps.edn
?You can add :deps/root to point to a subdir of a git dep
FWIW, that's typically how Polylith-based libraries and tools are made available (with :deps/root
).
See https://polylith.gitbook.io/poly/install/install/use-as-dependency (Via GitHub section) and https://polylith.gitbook.io/poly/install/install/install-as-clojure-cli-tool
(and https://github.com/seancorfield/polylith-external-test-runner which hasn't been announced yet)