tools-deps

Lambda/Sierra 2026-04-01T15:28:35.416659Z

Does brew upgrade clojure also update tools.tools? Based on my https://clojurians.slack.com/archives/C6QH853H8/p1775056288291439?thread_ts=1772668753.414189&cid=C6QH853H8, maybe it does not?

seancorfield 2026-04-01T15:35:51.092619Z

I've had some weirdness with brew in that respect. I gave up and switched to the Linux/Posix installer scripts instead (and I have a wrapper script that downloads and installs the latest stable version based on the version file in the repo).

seancorfield 2026-04-01T15:37:25.222889Z

stable-properties -- but you have to know the major version since everything is on branches.

seancorfield 2026-04-01T15:38:20.730249Z

I could probably make my script smarter about figuring out the default branch in the repo...

Alex Miller (Clojure team) 2026-04-01T19:44:09.214269Z

it should be updated. the installer package contains a tools.edn file with a dependency on tools.tools. when you run the clojure or clj script itself it checks whether the installer package tools.edn is newer than the version you have in your config dir. If so, it copies the installer one into your config dir, effectively installing the new version. I tested this before the latest release, and it Worked on My Machine with the brew installer.

Alex Miller (Clojure team) 2026-04-01T19:45:16.122159Z

so I am curious @stuartsierra which installer you used

Lambda/Sierra 2026-04-01T20:06:59.070009Z

Well now I'm confused. 😆 brew list --full-name says I have clojure/tools/clojure installed.

Lambda/Sierra 2026-04-01T20:07:20.748659Z

If I run brew info on that:

$ brew info clojure/tools/clojure
==> clojure/tools/clojure ✔: stable 1.12.4.1618
The Clojure Programming Language

Installed
/opt/homebrew/Cellar/clojure/1.12.4.1618 (12 files, 17.5MB) *
  Built from source on 2026-03-11 at 07:52:20
From: 
License: EPL-1.0
==> Dependencies
Required: rlwrap ✔

Lambda/Sierra 2026-04-01T20:08:03.098079Z

But if I run brew info clojure I get:

$ brew info clojure
==> clojure ✔: stable 1.12.4.1618 (bottled)
Dynamic, general-purpose programming language

Installed
/opt/homebrew/Cellar/clojure/1.12.4.1618 (12 files, 17.5MB) *
  Built from source on 2026-03-11 at 07:52:20
From: 
License: EPL-1.0
==> Dependencies
Required: openjdk ✔, rlwrap ✔
==> Analytics
install: 1,185 (30 days), 2,799 (90 days), 9,237 (365 days)
install-on-request: 1,185 (30 days), 2,791 (90 days), 9,220 (365 days)
build-error: 0 (30 days)

Lambda/Sierra 2026-04-01T20:13:11.670079Z

I think it's saying the same thing, brew info just assumes that clojure is the default Homebrew package and not the clojure/tools/clojure one.

Alex Miller (Clojure team) 2026-04-01T20:22:37.666119Z

Yes, those are different formulas

Alex Miller (Clojure team) 2026-04-01T20:24:51.895209Z

But as far as tools.tools stuff goes, there should be no difference

Alex Miller (Clojure team) 2026-04-01T20:26:17.256159Z

I guess packaging could be different wrt to timestamps

Lambda/Sierra 2026-04-01T20:28:54.642059Z

Who knows. 🤷‍♀️ There's a lot of automated setup weirdness on this machine.

seancorfield 2026-04-01T20:55:22.269889Z

brew is wild. If you brew install clojure, not only will you get an openjdk of brew's choosing, but it installs all sorts of other things as dependencies, including sqlite...

seancorfield 2026-04-01T20:56:30.586449Z

The clojure/tools/clojure tap is better, but it still added libyaml, gperf and ruby 😐