This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-26
Channels
- # asami (5)
- # babashka (9)
- # beginners (19)
- # calva (14)
- # cider (13)
- # clj-kondo (9)
- # cljfx (2)
- # clojure (51)
- # clojure-bay-area (1)
- # clojure-europe (26)
- # clojurescript (23)
- # code-reviews (7)
- # core-async (1)
- # datahike (4)
- # datalevin (3)
- # emacs (2)
- # kaocha (2)
- # malli (6)
- # nrepl (3)
- # polylith (3)
- # re-frame (15)
- # reveal (1)
- # shadow-cljs (13)
- # tools-deps (6)
Workaround for getting a REPL for -A
with :main-opts
invocation:
clj -Scp $(clojure -Spath -A:babashka/dev)
What are you working around?
I define a separate alias that doesn't include the main-opts, such as :lib/kaocha (in practicalli/clojure-deps-edn) for including Kaocha test runner as a library rather than calling it as a test running. Not sure I understand any use cases that would require a workaround
My use case is that 99% of the time I am using -M:alias to invoke the main function, but today I needed to invoke a REPL with that dependency, which was unusual, and I thought I'd share my workaround. Which brings me to the question: when will -A + :main-opts be really deprecated so it will invoke a REPL? I think the deprecation warning has been there for long enough now?