Fork me on GitHub
#clj-on-windows
<
2023-04-14
>
borkdude14:04:41

If you're running into trouble with clojure 1.12.0-alpha2 and add-lib, there are a few ways to solve this, both boil down to installing deps.clj as clojure.exe on your system with: • Download deps.exe from https://github.com/borkdude/deps.clj and rename it to clojure.exe and put it on your system's PATH. • Run scoop install clj-deps with the https://github.com/littleli/scoop-clojure • I was going to recommend https://github.com/casselc/clj-msi but I see that it's no longer updating. You need the most recent version of deps.clj else add-lib isn't going to work. Also the version order looks a bit off. cc @chuck.cassel

borkdude18:04:43

I added an --as-clj flag to the deps.clj installer script so it will rename deps.exe to clojure.exe for you:

PowerShell -Command "irm " > install_clojure.ps1
PowerShell -f install_clojure.ps1 --as-clj
The above downloads deps.exe, installs it as clj.exe and clojure.exe on your system and will also add it to the path automatically. I wonder if I can make this a single line, but I couldn't figure out how to add the --as-clj argument.

gratitude-thank-you 2