On https://github.com/clojure/homebrew-tools, I think the order of uninstalling and installing clojure from Homebrew core should be changed
$ brew install clojure/tools/clojure
brew upgrade clojure/tools/clojure
brew uninstall clojure
✔︎ JSON API formula.jws.json Downloaded 32.0MB/ 32.0MB
✔︎ JSON API cask.jws.json Downloaded 15.3MB/ 15.3MB
Error: clojure was installed from the homebrew/core tap
but you are trying to install it from the clojure/tools tap.
Formulae with the same name from different taps cannot be installed at the same time.
To install this version, you must first uninstall the existing formula:
brew uninstall clojure
Then you can install the desired version:
brew install clojure/tools/clojure
Warning: clojure/tools/clojure 1.12.1.1550 already installed
Uninstalling /opt/homebrew/Cellar/clojure/1.12.1.1550... (14 files, 17.3MB)
It wants the old one uninstalled before adding the new onethat's not a list of steps, that's a list of commands. if you already have it installed, you should use brew upgrade
the main instructions for clj install are at https://clojure.org/guides/install_clojure. this page is really just a short overview of the tap (which most people never look at). I'm curious to know your path to how you ended up here
I updated the tap page to clarify that these are separate commands, not installation steps
Oh right, I thought it was to migrate away from homebrew-core’s version to the Clojure tap. I was looking at it because I was trying to install old versions of clojure to track down a bug we had when we upgraded to the latest version
well, if there's a bug, let me know!
Will do, I suspect it might be because we were upgrading from 1.10.3.1029 which is quite old and there was some change we didn’t account for. Although the issue manifested when running in production, not during the build. Anyway, not sure yet but I’ll let you know what I find 🙂
ok, certainly lots of changes since then
https://clojure.org/releases/tools is probably the best combined changelog to review