Fork me on GitHub
#tools-build
<
2021-11-11
>
borkdude22:11:56

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.

borkdude22:11:49

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

borkdude22:11:35

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.

borkdude22:11:35

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)21:11:31

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)22:11:05

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

👍 1
borkdude22:11:00

afk now 💤