tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
seancorfield 2021-03-18T00:34:15.101900Z

com.github.seancorfield/depstar {:mvn/version "2.0.206"} is available — new :paths-only option to exclude local/git deps from library JARs if needed; exec args can now be alias names (keywords) that are looked up in the basis (that includes user deps.edn) so that you can be more DRY in your deps.edn file by using aliases to define shared/common argument values (e.g., deps-deploy currently has a PR open to add similar functionality, so you would be able to define your JAR filename in an alias and then reuse it between both tools!). Follow-up in #depstar

2021-03-18T03:48:31.103100Z

So is it expected for brew install clojure/tools/clojure to install some version of a JDK via Homebrew now? I thought that one of the motivations for switching to clojure/tools/clojure from the former clojure Homebrew package was to avoid having a dependency on any JDKs?

alexmiller 2021-03-18T03:51:40.103800Z

nothing has changed (from clojure formula perspective), but brew works really hard to break stuff so something could have changed

😂 1
alexmiller 2021-03-18T03:53:09.104700Z

you can see in the formula https://github.com/clojure/homebrew-tools/blob/master/Formula/clojure.rb that it does not explicitly depend on java

alexmiller 2021-03-18T03:54:10.105100Z

(vs https://github.com/Homebrew/homebrew-core/blob/master/Formula/clojure.rb in homebrew-core)

2021-03-18T04:06:24.106400Z

I tried wiping homebrew off a Linux system where I had it before, and reinstall from scratch, and brew install clojure/tools/clojure did not install a JDK this time. Probably something left over from my previous brew installation

alexmiller 2021-03-18T04:10:45.106900Z

by default, brew will upgrade stuff, so if you had previously installed, it may have just upgraded

seancorfield 2021-03-18T04:20:49.109100Z

brew is annoying (because of the strong opinions of the core maintainer team) but it is also very convenient. I long resisted installing it on my Mac (and macports was also problematic) but now that I've given in -- because of Clojure! -- I'm happy to use it on my WSL2/Ubuntu setup as well to manage my Clojure CLI. So it's all your fault! 🙂