Skip to content

Commit 98545da

Browse files
committed
test: update libs test deps
- antq - cljfmt - now uses rewrite-clj v1 in official release (woot!) - clojure-lsp
1 parent 9263e0a commit 98545da

File tree

2 files changed

+12
-25
lines changed

2 files changed

+12
-25
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Some projects using rewrite-clj v1
4949

5050
* https://github.com/liquidz/antq[antq] ^🐥^
5151
* https://github.com/borkdude/carve[carve] ^🐥^ (in dev)
52-
* https://github.com/weavejester/cljfmt[cljfmt] ^🐥^ (in dev)
52+
* https://github.com/weavejester/cljfmt[cljfmt] ^🐥^
5353
* https://github.com/greglook/cljstyle[cljstyle] ^🐥^
5454
* https://github.com/clojure-lsp/clojure-lsp[clojure-lsp] ^🐥^
5555
* https://github.com/borkdude/rewrite-edn[rewrite-edn] ^🐥^

script/test_libs.clj

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@
144144
:removals #{'rewrite-clj 'rewrite-clj/rewrite-clj}
145145
:additions [['rewrite-clj/rewrite-clj {:mvn/version rewrite-clj-version}]]}))
146146

147+
(defn- project-clj-v1-patch [{:keys [home-dir rewrite-clj-version]}]
148+
(patch-deps {:filename (str (fs/file home-dir "project.clj"))
149+
:removals #{'rewrite-clj}
150+
:additions [['rewrite-clj rewrite-clj-version]]}))
151+
147152
(defn- replace-in-file [fname match replacement]
148153
(let [orig-filename (str fname ".orig")
149154
content (slurp fname)]
@@ -166,16 +171,6 @@
166171
:additions [['rewrite-clj/rewrite-clj {:mvn/version rewrite-clj-version}]]})
167172
(patch-rewrite-cljc-sources home-dir))
168173

169-
;;
170-
;; cljfmt
171-
;;
172-
173-
(defn- cljfmt-patch [{:keys [home-dir rewrite-clj-version]}]
174-
(patch-deps {:filename (str (fs/file home-dir "project.clj"))
175-
:removals #{'rewrite-clj 'rewrite-cljs}
176-
:additions [['rewrite-clj rewrite-clj-version]
177-
['org.clojure/clojure "1.9.0"]]}))
178-
179174
;;
180175
;; clojure-lsp
181176
;;
@@ -184,14 +179,6 @@
184179
:removals #{'rewrite-clj/rewrite-clj}
185180
:additions [['rewrite-clj/rewrite-clj {:mvn/version rewrite-clj-version}]]}))
186181

187-
;;
188-
;; cljstyle
189-
;;
190-
191-
(defn- cljstyle-patch [{:keys [home-dir rewrite-clj-version]}]
192-
(patch-deps {:filename (str (fs/file home-dir "project.clj"))
193-
:removals #{'rewrite-clj}
194-
:additions [['rewrite-clj rewrite-clj-version]]}))
195182

196183
;;
197184
;; depot
@@ -318,7 +305,7 @@
318305
;;
319306

320307
(def libs [{:name "antq"
321-
:version "0.14.1"
308+
:version "0.15.3"
322309
:platforms [:clj]
323310
:github-release {:repo "liquidz/antq"}
324311
:patch-fn deps-edn-v1-patch
@@ -333,26 +320,26 @@
333320
:show-deps-fn cli-deps-tree
334321
:test-cmds [["clojure" "-M:test"]]}
335322
{:name "cljfmt"
336-
:version "0.7.0"
323+
:version "0.8.0"
337324
:platforms [:clj :cljs]
338325
:root "cljfmt"
339326
:github-release {:repo "weavejester/cljfmt"
340327
:via :tag}
341-
:patch-fn cljfmt-patch
328+
:patch-fn project-clj-v1-patch
342329
:show-deps-fn lein-deps-tree
343330
:test-cmds [["lein" "test"]]}
344331
{:name "cljstyle"
345332
:version "0.15.0"
346333
:platforms [:clj]
347334
:github-release {:repo "greglook/cljstyle"
348335
:via :tag}
349-
:patch-fn cljstyle-patch
336+
:patch-fn project-clj-v1-patch
350337
:show-deps-fn lein-deps-tree
351338
:test-cmds [["lein" "check"]
352339
["lein" "test"]]}
353340
{:name "clojure-lsp"
354341
:platforms [:clj]
355-
:version "2021.05.27-17.42.34"
342+
:version "2021.06.24-14.24.11"
356343
:github-release {:repo "clojure-lsp/clojure-lsp"}
357344
:patch-fn clojure-lsp-patch
358345
:show-deps-fn cli-deps-tree
@@ -505,7 +492,7 @@
505492
:version (str (-> % :github-release :version-prefix) (:version %))))
506493
(filter #(not= (:available-version %) (:version %))))]
507494
(if (seq outdated-libs)
508-
(-> (doric/table [:name :version :available-version] outdated-libs) println)
495+
(-> (doric/table [:name :version :available-version :note] outdated-libs) println)
509496
(status/line :detail "=> All libs seems up to date"))))
510497

511498
(defn- print-results [results]

0 commit comments

Comments
 (0)