Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/libs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
- name: Setup
uses: ./.github/workflows/shared-setup
with:
jdk: ${{ matrix.jdk }}
clj-cache-prefix: clj-libs-deps-${{ matrix.lib-name }}
clj-cache-hash-files: "'script/test_libs.clj','deps.edn','bb.edn'"

Expand Down
1 change: 1 addition & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Some projects using rewrite-clj v1
* https://github.com/weavejester/cljfmt[cljfmt] {canary-tested} - A tool for formatting Clojure code
* https://github.com/greglook/cljstyle[cljstyle] {canary-tested} - A tool for formatting Clojure code
* https://github.com/clojure-lsp/clojure-lsp[clojure-lsp] {canary-tested} - Language Server (LSP) for Clojure
* https://github.com/bhauman/clojure-mcp[clojure-mcp] {canary-tested} - REPL-Driven Development with AI Assistance
// repo is not version tagged:
* https://github.com/mauricioszabo/duck-repled[duck-repled] {not-canary-tested} - Transform your REPL interation into Pathom queries
* https://github.com/jonase/kibit[kibit] {canary-tested} - There's a function for that!
Expand Down
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{;; for disabling the official compiler
:classpath-overrides {org.clojure/clojure nil}
:extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.1"}
com.github.flow-storm/flow-storm-dbg {:mvn/version "4.4.4"}}
com.github.flow-storm/flow-storm-dbg {:mvn/version "4.4.5"}}
:jvm-opts ["-Dclojure.storm.instrumentEnable=true"]}

:nrepl/jvm
Expand Down
33 changes: 25 additions & 8 deletions script/test_libs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
[io.aviso.ansi :as ansi]
[lread.status-line :as status]))

(def default-jdk "21")

(defn shcmd [cmd & args]
(let [[opts cmd args] (if (map? cmd)
[cmd (first args) (rest args)]
Expand Down Expand Up @@ -327,11 +329,20 @@
"bin/test unit"]}
{:name "clojure-lsp"
:platforms [:clj]
:version "2025.05.27-13.56.57"
:version "2025.06.06-19.04.49"
:github-release {:repo "clojure-lsp/clojure-lsp"}
:patch-fn clojure-lsp-patch
:show-deps-fn clojure-lsp-deps
:test-cmds ["bb test"]}
{:name "clojure-mcp"
:platforms [:clj]
:version "0.1.1-alpha"
:github-release {:repo "bhauman/clojure-mcp"
:via :tag
:version-prefix "v"}
:patch-fn deps-edn-v1-patch
:show-deps-fn cli-deps-tree
:test-cmds ["clojure -M:test"]}
{:name "depot"
:platforms [:clj]
:note "1 patch required due to using, but not requiring, rewrite-clj.node"
Expand Down Expand Up @@ -369,6 +380,7 @@
:test-cmds ["lein test"]}
{:name "mranderson"
:version "0.5.3"
:jdk 11 ;; Downgrade jdk from default, MrAnderson tests currently require the older jdk11
:platforms [:clj]
:github-release {:repo "benedekfazekas/mranderson"
:via :tag
Expand Down Expand Up @@ -580,13 +592,18 @@ Specifying no lib-names selects all libraries.")
(when-let [opts (main/doc-arg-opt args-usage args)]
(cond
(get opts "list")
(if (= "json" (get opts "--format"))
(status/line :detail (->> libs
(map (fn [{:keys [name requires]}]
{:lib-name name
:requires (or requires [])}))
json/generate-string))
(status/line :detail (str "available libs: " (string/join " " (map :name libs)))))
(let [format (get opts "--format")
libs-for-ci (->> libs
(map (fn [{:keys [name jdk requires]}]
{:lib-name name
:requires (or requires [])
:jdk (or jdk default-jdk)})))]
(case format
"json"
(status/line :detail (json/generate-string libs-for-ci))
"table"
(status/line :detail (doric/table [:lib-name :jdk :requires] libs-for-ci))
(status/line :detail (str "available libs: " (string/join " " (map :name libs))))))

:else
(let [lib-names (get opts "<lib-name>")
Expand Down