Skip to content

Commit bf02672

Browse files
committed
Exclude resources when building lint cache
We don't want our own clj-kondo exports to be picked up when building our clj-kondo cache, so exclude them.
1 parent 8d71364 commit bf02672

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

deps.edn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
;;
2020

2121
;; linting
22+
:lint-cache {:replace-paths ["src"]} ;; when building classpath we want to exclude resources
23+
;; so we do not pick up our own clj-kondo config exports
2224
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version "2021.04.23"}}
23-
:replace-paths ["src"] ;; avoid including our exported clj-kondo config under resources
2425
:main-opts ["-m" "clj-kondo.main"]}
2526

2627

script/lint.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
(defn- build-cache []
2323
(status/line :head "clj-kondo: building cache")
24-
(let [clj-cp (-> (shell/command ["clojure" "-A:test" "-Spath"] {:out :string}) :out string/trim)
24+
(let [clj-cp (-> (shell/command ["clojure" "-A:test:lint-cache" "-Spath"] {:out :string}) :out string/trim)
2525
bb-cp (bbcp/get-classpath)]
2626
(shell/command ["clojure" "-M:clj-kondo"
2727
"--dependencies" "--copy-configs"

0 commit comments

Comments
 (0)