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
36 changes: 36 additions & 0 deletions .clj-kondo/imports/babashka/fs/babashka/fs.clj_kondo
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
(ns babashka.fs
(:require [clj-kondo.hooks-api :as api]))

(defn- symbol-node? [node]
(and (api/token-node? node)
(symbol? (api/sexpr node))))

(defn with-temp-dir
[{:keys [node]}]
(let [args (rest (:children node))
binding-like-vector (first args)
body (rest args)]
(when-not (zero? (count args)) ;; let clj-kondo report on arity
(if-not (api/vector-node? binding-like-vector)
(api/reg-finding! (assoc (meta binding-like-vector)
:message "babashka.fs/with-temp-dir requires a vector for first arg"
:type :babashka-fs/with-temp-dir-first-arg-not-vector))
(let [[binding-sym options & rest-in-vec] (:children binding-like-vector)]
(when (not (symbol-node? binding-sym))
(api/reg-finding! (assoc (meta (or binding-sym binding-like-vector))
:message "babashka.fs/with-temp-dir vector arg requires binding-name symbol as first value"
:type :babashka-fs/with-temp-dir-vector-arg-needs-binding-symbol)))
(doseq [extra-vector-arg rest-in-vec]
(api/reg-finding! (assoc (meta extra-vector-arg)
:message "babashka.fs/with-temp-dir vector arg accepts at most 2 values"
:type :babashka-fs/with-temp-dir-vector-arg-extra-value)))

(when binding-sym
{:node (api/list-node
;; satisfy linter by creating binding for for binding-sym
(list*
(api/token-node 'let)
;; it doesn't really matter what we bind to, so long as it is bound
(api/vector-node [binding-sym (api/token-node nil)])
options ;; avoid unused binding when options is a binding
body))}))))))
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Setup Git User so that we can later commit
uses: fregante/setup-git-user@v2

- name: Clojure deps cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.m2/repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
if: matrix.os == 'windows'

- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Clojure deps cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.m2/repository
Expand Down
18 changes: 9 additions & 9 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

:deps {org.clojure/clojure {:mvn/version "1.11.4"}
org.clojure/tools.reader {:mvn/version "1.5.2"}
babashka/fs {:mvn/version "0.5.27"}
clj-kondo/clj-kondo {:mvn/version "2025.09.22"}
babashka/fs {:mvn/version "0.5.30"}
clj-kondo/clj-kondo {:mvn/version "2025.10.23"}
dev.nubank/docopt {:mvn/version "0.6.1-fix7"}
metosin/malli {:mvn/version "0.19.2"}
metosin/malli {:mvn/version "0.20.0"}
rewrite-clj/rewrite-clj {:mvn/version "1.2.50"}}

:aliases {;; we use babashka/neil for project attributes
Expand All @@ -23,14 +23,14 @@
:1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.3"}}}
:1.11 {:override-deps {org.clojure/clojure {:mvn/version "1.11.4"}}}
:1.12 {:override-deps {org.clojure/clojure {:mvn/version "1.12.3"}}}
:1.12 {:override-deps {org.clojure/clojure {:mvn/version "1.12.4"}}}

;;
;; REPL to support bb dev-jvm & dev-cljs tasks, see script/dev_repl.clj
;;
:nrepl
{:extra-deps {nrepl/nrepl {:mvn/version "1.4.0"}
cider/cider-nrepl {:mvn/version "0.57.0"}
{:extra-deps {nrepl/nrepl {:mvn/version "1.5.1"}
cider/cider-nrepl {:mvn/version "0.58.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.11.0"}}
:jvm-opts ["-XX:-OmitStackTraceInFastThrow" "-Djdk.attach.allowAttachSelf"]
:main-opts ["-m" "nrepl.cmdline"
Expand All @@ -40,8 +40,8 @@
:flowstorm
{;; for disabling the official compiler
:classpath-overrides {org.clojure/clojure nil}
:extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.3-1"}
com.github.flow-storm/flow-storm-dbg {:mvn/version "4.5.7"}}
:extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.4"}
com.github.flow-storm/flow-storm-dbg {:mvn/version "4.5.9"}}
:jvm-opts ["-Dclojure.storm.instrumentEnable=true"]}

;; clojure -X support for local examples
Expand Down Expand Up @@ -104,7 +104,7 @@
;;
;; Deployment
;;
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.10.10"}}
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.10.11"}}
:extra-paths ["src" "build"]
:ns-default build}

Expand Down