This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-02
Channels
- # announcements (6)
- # babashka (21)
- # beginners (38)
- # biff (2)
- # calva (14)
- # cider (5)
- # clerk (4)
- # cljdoc (2)
- # clojure (11)
- # clojure-europe (2)
- # clojure-norway (5)
- # clojure-spec (4)
- # core-typed (8)
- # data-science (5)
- # deps-new (15)
- # events (1)
- # fulcro (2)
- # graalvm (33)
- # holy-lambda (3)
- # hyperfiddle (19)
- # kaocha (1)
- # portal (5)
- # test-check (1)
- # xtdb (9)
- # yamlscript (2)
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
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
That is kind of an old cli version, the alpha qualifier (you can see it in the namespace there) was removed some time ago
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
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
Yeah, Windows Shell quoting is awful. Which is why that now is in the README.
A quoting issue wouldnt cause an error with a namespace that the version they think they are using doesn't contain
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.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
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 🤷
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
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.
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.