Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.deps by

There "was" Windows support for Clojure using Chocolatey: https://chocolatey.org/packages/clojure and it was quite good.

Just choco install clojure and everything was working.

Wouldn't be possible to just extend that old integration to cover Clojure 10 and the tools?

The solution here https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows seems quite complicated compared to using jLine like in the Chocolatey package above.

Thank you.

1 Answer

+1 vote
by

I would be interested to learn what that was. It was not anything created by the core team.

I'm guessing it was just a script to run the clojure repl from a jar, which is considerably less than the deps.edn clj support.

by
> I'm guessing it was just a script to run the clojure repl from a jar, which is considerably less than the deps.edn clj support.

If I see correctly, the trick was to use JLine https://jline.github.io/   (see `tools\chocolateyInstall.ps1` "Show" in the https://chocolatey.org/packages/clojure page) to have a "compatible" input behavior across OS-es.
by
Definitely misleading since it's not at all comparable with the `clj`/`clojure` commands that exist today (and which provides the "compatible" input behavior across OS-es -- in addition to all the `deps.edn` support etc).
by
Since we're on the subject, if clj for windows ever gets on a package manager, i hope it's scoop! Way better design than chocolatey in my opinion: https://scoop.sh/
by
I have tried out scoop and it works fine for installing command line utils, as long as they don't have dependencies. Scoop doesn't manage those. Edit: my assumption is wrong apparently, but it does work differently than most package managers: https://github.com/lukesampson/scoop/wiki/Dependencies
...