Skip to content

Commit 6c53f79

Browse files
committed
dev: update deps and refine outdated deps check
The new version of antq has allowed me to exclude a problematic kaocha release. Thanks antq! I've also pinned clojure to version 1.9.0 for pom.xml as this is rewrite-clj lib min clojure version. (We don't need to know there are updates to clojure 1.9.0 for pom.xml). I did this by asking antq to output results in edn, removing pinned version, then using antq reporter from bb to present results.
1 parent 103704f commit 6c53f79

File tree

5 files changed

+45
-25
lines changed

5 files changed

+45
-25
lines changed

bb.edn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
:paths ["script"]
33
:deps {org.clojure/data.zip {:mvn/version "1.0.0"}
44
io.aviso/pretty {:mvn/version "0.1.37"}
5-
dev.nubank/docopt {:mvn/version "0.6.1-fix2"}
5+
dev.nubank/docopt {:mvn/version "0.6.1-fix5"}
6+
com.github.liquidz/antq {:mvn/version "0.14.0"}
67
doric/doric {:mvn/version "0.9.0"}
78
version-clj/version-clj {:mvn/version "2.0.1"}
89
lread/status-line {:git/url "https://github.com/lread/status-line.git"

deps.edn

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@
122122
;;
123123
;; Maintenance support
124124
;;
125-
:outdated {:extra-deps {com.github.liquidz/antq {:mvn/version "0.13.0"}
125+
:outdated {:extra-deps {com.github.liquidz/antq {:mvn/version "0.14.0"}
126126
org.slf4j/slf4j-simple {:mvn/version "1.7.30"} ;; to rid ourselves of logger warnings
127127
}
128-
:main-opts ["-m" "antq.core"]}}}
128+
:main-opts ["-m" "antq.core"
129+
"--reporter=edn"
130+
"--exclude=lambdaisland/[email protected]" ;; https://github.com/lambdaisland/kaocha/issues/208
131+
]}}}

package-lock.json

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"karma-cljs-test": "^0.1.0",
77
"karma-junit-reporter": "^2.0.0",
88
"karma-spec-reporter": "^0.0.32",
9-
"shadow-cljs": "^2.12.5"
9+
"shadow-cljs": "^2.13.0"
1010
}
1111
}

script/outdated.clj

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
#!/usr/bin/env bb
22

33
(ns outdated
4-
(:require [clojure.java.io :as io]
4+
(:require [antq.report :as antq-report]
5+
[antq.report.table]
6+
[clojure.edn :as edn]
7+
[clojure.java.io :as io]
8+
[clojure.string :as string]
59
[helper.main :as main]
610
[helper.shell :as shell]
711
[lread.status-line :as status]))
812

13+
(def pin-clojure-version-pom "1.9.0")
14+
915
(defn check-clojure []
1016
(status/line :head "Checking Clojure deps")
11-
(shell/command-no-exit ["clojure" "-M:outdated"]))
17+
(if-let [outdated (->> (shell/command-no-exit ["clojure" "-M:outdated"] {:out :string})
18+
:out
19+
string/trim
20+
edn/read-string
21+
(remove #(and (= "pom.xml" (:file %))
22+
(= "org.clojure/clojure" (:name %))
23+
(= pin-clojure-version-pom (:version %))))
24+
seq)]
25+
(antq-report/reporter outdated {:reporter "table"})
26+
(status/line :detail "All Clojure dependencies seem up to date.")))
27+
1228

1329
(defn check-nodejs []
1430
(status/line :head "Checking Node.js deps")

0 commit comments

Comments
 (0)