diff --git a/CHANGELOG.md b/CHANGELOG.md index 040e948..36ebc40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ DEPS_CLJ_TOOLS_VERSION=1.11.1.1165 bb clojure [deps.clj](https://github.com/borkdude/deps.clj): a faithful port of the clojure CLI bash script to Clojure +## 1.11.1.1273-4 + +- Expose [API.md](API.md) +- Automatically use file argument when command line arguments exceeds supported length on Windows. + See [this article](https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553) for more info. + ## 1.11.1.1273 - Catch up with clojure CLI of same version diff --git a/project.clj b/project.clj index bf82659..7271fab 100644 --- a/project.clj +++ b/project.clj @@ -1,6 +1,6 @@ (defproject borkdude/deps.clj #=(clojure.string/trim - #=(slurp "resources/DEPS_CLJ_VERSION")) +x #=(slurp "resources/DEPS_CLJ_VERSION")) :description "deps.clj: a Clojure port of the clojure bash script" :url "https://github.com/borkdude/deps.clj" :scm {:name "git" diff --git a/resources/DEPS_CLJ_VERSION b/resources/DEPS_CLJ_VERSION index e6b4d5c..83d2cd4 100644 --- a/resources/DEPS_CLJ_VERSION +++ b/resources/DEPS_CLJ_VERSION @@ -1 +1 @@ -1.11.1.1273-3 +1.11.1.1273-4 diff --git a/src/borkdude/deps.clj b/src/borkdude/deps.clj index 4eb7692..5906b53 100755 --- a/src/borkdude/deps.clj +++ b/src/borkdude/deps.clj @@ -757,6 +757,8 @@ public class ClojureToolsDownloader { (.getPath (io/file cache-dir (str checksum ".basis")))) (defn- auto-file-arg [cp] + ;; see https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553 + ;; command line limit on Windows with process builder (if (and windows? (> (count cp) 32766)) (let [tmp-file (.toFile (java.nio.file.Files/createTempFile "file_arg" ".txt" @@ -1000,8 +1002,6 @@ public class ClojureToolsDownloader { cp (if (or exec? tool?) (str cp path-separator exec-cp) cp) - ;; see https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553 - ;; command line limit on Windows with process builder main-args (concat java-cmd java-opts proxy-settings