This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-03
Channels
- # announcements (1)
- # babashka (22)
- # beginners (176)
- # calva (10)
- # cider (4)
- # circleci (5)
- # cljsrn (20)
- # clojure (28)
- # clojure-europe (11)
- # clojure-italy (5)
- # clojure-nl (5)
- # clojure-spec (1)
- # clojure-sweden (2)
- # clojure-uk (29)
- # clojuredesign-podcast (4)
- # clojurescript (38)
- # code-reviews (25)
- # conjure (1)
- # core-typed (1)
- # data-science (16)
- # datomic (23)
- # figwheel-main (16)
- # fulcro (48)
- # helix (9)
- # jobs (3)
- # juxt (5)
- # kaocha (17)
- # malli (19)
- # mount (9)
- # nrepl (4)
- # off-topic (35)
- # pathom (7)
- # re-frame (28)
- # reagent (26)
- # reitit (1)
- # releases (1)
- # remote-jobs (5)
- # sci (6)
- # shadow-cljs (36)
- # spacemacs (3)
- # sql (8)
- # tools-deps (13)
- # unrepl (1)
- # vim (4)
- # xtdb (8)
:exclusions
appears to be per-dep only, but I want to assert e.g. logback should never be present
Is there a way to replace or remove paths in an alias? I want to exclude on of my source paths in just one alias.
My current coping mechanism is to set -Sdeps '{:paths ["some" "paths" ...]}'
on the command line.
@dominicm I'd like to avoid that because I don't want to have to specify another -A:
in all of the cases except one. The extra -A:
is just another thing to forget to do.
@neumann major hack, this removes the src
path from the classpath:
borkdude@vps1918:~$ export classpath=$(clojure -Spath)
borkdude@vps1918:~$ new_classpath=$(bb -o -e '(let [path (System/getenv "classpath"), paths (str/split path #":"), paths (remove #(= "src" %) paths)] (str/join ":" paths))')
borkdude@vps1918:~$ clojure -Scp "$new_classpath"
Clojure 1.9.0
user=>
@borkdude Nice! Yes, I was thinking of maybe using babashka. (Which is amazing! Thank you so much for creating it!)
@borkdude Something like this, using "src"
as the example:
cat deps.edn | bb -I -e '(->> *input* first :paths (remove #{"src"}) vec)'