deps-new

muthui shere 2023-09-02T14:37:47.525839Z

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 shere 2023-09-02T14:40:29.711629Z

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

2023-09-02T15:08:18.242259Z

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

2023-09-02T15:14:07.271869Z

(about 9 months ago)

2023-09-02T15:59:41.651559Z

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 B 2023-09-02T16:51:20.351129Z

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

seancorfield 2023-09-02T18:01:04.307699Z

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

2023-09-02T18:29:19.071509Z

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

seancorfield 2023-09-02T18:41:04.010479Z

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>
point_up::skin-tone-2 It's a quoting issue.

👍 1
💯 1
2023-09-02T18:50:53.212359Z

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

seancorfield 2023-09-02T19:14:53.095889Z

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 shere 2023-09-03T05:02:19.698759Z

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

seancorfield 2023-09-03T05:56:14.671819Z

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.

seancorfield 2023-09-03T05:57:12.146839Z

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 B 2023-09-03T07:17:02.075539Z

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