I briefly tried tools.deps in a Windows VM to be able to build clj-kondo for Windows.
Is there a trick to get clojure
to work as a regular shell program instead of only in a PS environment so I can keep using my regular bash script for building?
The script works in the bash shell that comes with the Git for Windows, except for that bit.
I see there’s a clojure.bat script in the issue, maybe I could tweak that
My recollection is that you can basically get it working if you exec out to powershell.exe clojure -A:foo
versus clojure -A:foo
, but clojure.bat would probably be a better choice if it works
one problem I had with powershell.exe clojure -A:foo
was that the environment variables weren’t picked up by powershell
for GraalVM Windows I need to execute this within a special Windows 7.1 SDK shell
https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows asks for feedback so here goes : I dislike the fact that clj and clojure are poweshell commands.. Here is an exemple of a problem i had. I was giving a try to the fulcro lein template, and it's using tools.deps as well as shadow-cljs. Since we're using tools.deps, shadow-cljs has to use the clojure command.. which for some reason isn't visible to node (i guess?) even when starting shadow-cljs from a powershell console
In the end i was able to "roll my own" by placing this script named clojure.cmd in the project directory :
That thing is of course brittle as can be
Powershell is its own little world...
shadow-cljs is likely one of the firsts use cases for some newcomers, i don't think that's a good first experience with the clojure world. Anyways, not really a problem to me, but i wanted to share that feedback
Thanks, we’ve talked about shipping a cmd wrapper with it
great news ! thanks for all the awesome work on clojure