This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-17
Channels
- # announcements (1)
- # babashka (6)
- # beginners (5)
- # boot (18)
- # calva (4)
- # clj-kondo (39)
- # cljdoc (1)
- # cljs-dev (1)
- # clojure (24)
- # clojure-italy (5)
- # clojure-spec (5)
- # clojurescript (20)
- # cursive (10)
- # data-science (1)
- # datomic (1)
- # emacs (1)
- # fulcro (1)
- # kaocha (5)
- # rewrite-clj (18)
- # shadow-cljs (11)
- # spacemacs (35)
- # sql (11)
- # vim (13)
Is the binstub necessary for deps.edn projects, or simply just a convenience?
For my deps.edn projects I defined a :kaocha
alias and successfully call the runner using clj -A:kaocha
In ~/.clojure/deps.edn
I have the following
:kaocha
{:extra-deps {lambdaisland/kaocha {:mvn/version "0.0-554"}}
:main-opts ["-m" "kaocha.runner"]}
The tests run on a few simple projects I have that use the clojure.test
unit tests.
As this is the first time using kaocha, just wanted to check I wasn't missing something. Thank you.@jr0cket maybe $CLJ_CONFIG
is empty, tought it shouldn't matter https://github.com/clojure/tools.deps.alpha/blob/a5f49e4cebec070d22316e848f2be9792f24f8c2/src/main/clojure/clojure/tools/deps/alpha/reader.clj#L99-L109
Sorry, I dont understand this reply. The .clojure/deps.edn
configuration file is being used in all the deps.edn projects I have created so far. I just havent seen the advantage of using a binstub, as recommended in the project readme.md file.
The binstub is not necessary but it is a convention. See the recent discussion in #tools-deps for some of the rationale.
Ah yes, after reading https://cljdoc.org/d/lambdaisland/kaocha/0.0-554/doc/2-installing I have a clearer idea of what the binstub could be used for. I will also look at the tools-deps discussions. Thanks.