tools-build

2024-08-26T16:31:00.434129Z

The docstring for clojure.tools.build.api/java-command says that :basis is optional, but then https://github.com/clojure/tools.build/blob/master/src/main/clojure/clojure/tools/build/api.clj#L188. (I noticed this when trying out using it to run just a basic, non clojure using jar with no dependencies, with my own provided classpath. Not positive if this is an intended use case)

Alex Miller (Clojure team) 2024-08-26T16:34:49.085419Z

I think the docstring is correct and the assert is wrong, will take a look

Alex Miller (Clojure team) 2024-08-26T16:36:50.167999Z

you could try trivially satisfying it with {} and see if that does what you want

2024-08-26T16:37:28.911939Z

that works for me, thanks

Alex Miller (Clojure team) 2024-08-26T16:39:16.268529Z

looked at the history, was originally required, then made more flexible/optional but the assert was not updated

Alex Miller (Clojure team) 2024-08-26T16:40:45.033909Z

I've removed that assertion check on :basis for the next release

2024-08-26T16:42:56.151619Z

awesome, thanks!