Fork me on GitHub
#deps-new
<
2023-09-02
>
muthui shere14:09:47

In windows attempting to install clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag "v0.5.2"}' :as new throws error

Execution error (ExceptionInfo) at clojure.tools.deps.alpha.extensions.git/coord-err (git.clj:45).
Library io.github.seancorfield/deps-new has invalid tag: v0.5.2

muthui shere14:09:29

Installed clojure through scoop with clj-deps in windows. clojure --version => Clojure CLI version (deps.clj) 1.11.1.1403 , Installed as per https://github.com/littleli/scoop-clojure

hiredman15:09:18

That is kind of an old cli version, the alpha qualifier (you can see it in the namespace there) was removed some time ago

hiredman15:09:07

(about 9 months ago)

hiredman15:09:41

The cli version there is only from a few weeks ago, so it should not be using the old alpha version, it comes bundled with its own deps, so you must not be using the cli tool install you think you are

Bob B16:09:20

it might also be quoting - on https://github.com/seancorfield/deps-new, there's a note immediately after the install line that links to a page about powershell quoting

seancorfield18:09:04

Yeah, Windows Shell quoting is awful. Which is why that now is in the README.

hiredman18:09:19

A quoting issue wouldnt cause an error with a namespace that the version they think they are using doesn't contain

seancorfield18:09:04

PS C:\Users\seanc> clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag "v0.5.2"}' :as new
Cloning: 
Checking out:  at 12f7f66ee85578ae939c0b40b71a2f1811afac04
Downloading: org/slf4j/slf4j-nop/1.7.32/slf4j-nop-1.7.32.pom from central
Downloading: org/slf4j/slf4j-parent/1.7.32/slf4j-parent-1.7.32.pom from central
Downloading: org/slf4j/slf4j-api/1.7.32/slf4j-api-1.7.32.pom from central
Downloading: org/slf4j/slf4j-nop/1.7.32/slf4j-nop-1.7.32.jar from central
Cloning: 
Execution error (ExceptionInfo) at clojure.tools.deps.extensions.git/coord-err (git.clj:45).
Library io.github.seancorfield/deps-new has invalid tag: v0.5.2

Full report at:
C:\Users\seanc\AppData\Local\Temp\clojure-11930566137224458130.edn
PS C:\Users\seanc> clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag """v0.5.2"""}' :as new
Checking out:  at 253f32af67a87bc4f6d7f60e2a7353ca220a9d81
new: Installed io.github.seancorfield/deps-new v0.5.2
PS C:\Users\seanc>
☝️:skin-tone-2: It's a quoting issue.

👍 2
💯 2
hiredman18:09:53

That is the same error on a newer build, but their error actually has the alpha namespace in it, and it should not if they are using the version of the cli they say they are

seancorfield19:09:53

They're using borkdude's deps.clj - maybe it didn't switch from the alpha tools.deps? Either way, their error was due to quoting in Powershell 🤷

muthui shere05:09:19

Can we put that in Readme , instead of quoting issue, we can directly mention for windows powershell users try this. , I can add a PR , if you like

seancorfield05:09:14

The README links to the quoting issue. Only a small percent of Clojure users are on Windows Powershell. There's no value in duplicating that into every README on every project when 95% of people don't need it.

seancorfield05:09:12

I'm on Windows, BTW, but I use WSL2 which is a much better way to work with stuff since so much of the Clojure world assumes Linux.

Bob B07:09:02

also, deps.clj is an unofficial, graalvm-compiled port of the clojure CLI tool, so it's usable from windows terminal instead of just powershell - quoting is still not as nice as a nix shell, but IMO much nicer than powershell