This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-28
Channels
- # announcements (1)
- # babashka (9)
- # beginners (82)
- # calva (6)
- # cider (3)
- # clj-kondo (69)
- # cljdoc (4)
- # cljs-dev (10)
- # cljsrn (2)
- # clojure (74)
- # clojure-europe (11)
- # clojure-italy (9)
- # clojure-nl (15)
- # clojure-spec (18)
- # clojure-uk (89)
- # code-reviews (8)
- # core-async (42)
- # cursive (22)
- # datomic (26)
- # fulcro (13)
- # graalvm (31)
- # graphql (1)
- # leiningen (20)
- # malli (19)
- # music (1)
- # off-topic (4)
- # pathom (56)
- # re-frame (3)
- # reitit (26)
- # shadow-cljs (40)
- # spacemacs (5)
- # tools-deps (25)
I.e. I want to have the version number in some other location than project.clj, so I can use it for other tooling as well
@sogaiu yeah, already fixed it: https://github.com/borkdude/clj-kondo/blob/missing-require/script/update-project.clj
👍 4
@borkdude I tend to put stuff like that in a car before the defproject to avoid so much read-eval macro literal things happening.
Yeah. I may not have a good example but I believe inline reader eval dispatches can have strange behavior with symbol resolution as well. So I tend to push as much as I can into “normal” code and then just refer to a var or call a fn from the reader dispatch form.
so:
(require '[clojure.string :as str])
(defn version [] (str/trim (slurp "resources/CLJ_KONDO_VERSION")))
(defproject clj-kondo #=(version) ...)