tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
orestis 2021-03-21T13:29:30.134900Z

I was happy to see that Netlify includes clojure as a default CLI tool but it seems like the version there doesn't include the recent additions of -M and -X which is annoying because now I get local warnings about -M ...

borkdude 2021-03-21T14:21:37.135800Z

Is there a technical reason -m foo/bar doesn't work when you have (ns foo) (defn bar [& args])? Maybe the JVM background where -main is compiled to a Java main function?

borkdude 2021-03-21T14:22:03.136300Z

But this should probably not matter for :main-opts invocations which usually happen from source?

thheller 2021-03-21T14:23:46.136500Z

https://clojure.atlassian.net/browse/CLJ-2316

thheller 2021-03-21T14:25:19.136700Z

given the recent work on the deps.edn execute stuff I doubt this will ever make it in 😛

borkdude 2021-03-21T14:25:41.136900Z

I want to support this in babashka, -f already means: execute file there.

borkdude 2021-03-21T14:26:19.137100Z

If there are no technical or philosophical objections, I will support this

thheller 2021-03-21T14:26:57.137400Z

given that many other tools already support using namespaced symbols in -m I'd say go for it

borkdude 2021-03-21T14:27:46.137600Z

thanks