Fork me on GitHub

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:
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.


The output: 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)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

afk now 💤