Skip to content

Commit

Permalink
v1.11.1.1273-4
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed May 18, 2023
1 parent f826518 commit 8e3989c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion resources/DEPS_CLJ_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.1.1273-3
1.11.1.1273-4
4 changes: 2 additions & 2 deletions src/borkdude/deps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e3989c

Please sign in to comment.