tools-build 2021-11-11

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.

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

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.

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

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

afk now 💤