tools-build

borkdude 2021-11-11T22:10:56.198300Z

Is it possible to run clojure -T:build combined with --report stderr? I'm getting a

CreateProcess error=206, The filename or extension is too long
Full report at:
C:\Users\appveyor\AppData\Local\Temp\1\clojure-7706113854269791966.edn
in a Windows build where I'm making an uberjar with aws-api and it has loads of deps. So I'm relatively sure that it's a problem with jar / uber in tools build, but I can't see the logs.

borkdude 2021-11-11T22:12:49.198500Z

Got it. -J-Dclojure.main.report=

borkdude 2021-11-11T22:16:35.199300Z

The output: https://gist.github.com/borkdude/5071a7e45dcab3569df434952e97348e I'm sure there's already an issue for this. I think I might be able to work around it by writing the classpath to a file and then invoking Java manually.

borkdude 2021-11-11T22:17:35.199800Z

Perhaps that (writing classpath to file and then use file as java argument) can become an option in compile-clj . Using @file style arguments are only supported on Java 9+.

Alex Miller (Clojure team) 2021-11-12T21:56:31.206800Z

I added this as an option in java-command which is used by compile-clj and by default it is set to automatically detect and use a cp file if it's both needed (Windows + command length > 8k) and can be used (Java 9+). So should automatically take care of this with no changes in your build. Have not released, but please test 5e07caa26d9bffa037b7e0498645a0ddae95a450

borkdude 2021-11-12T21:59:14.207Z

@alexmiller will do!

borkdude 2021-11-12T22:11:02.207200Z

works!

borkdude 2021-11-12T22:15:23.207400Z

thank you

Alex Miller (Clojure team) 2021-11-12T22:33:05.207600Z

cool, making some additional updates to let it flow through compile-clj too, will release after

👍 1
borkdude 2021-11-11T22:21:00.200300Z

afk now 💤