Hi, just wanted to note that clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new fails for me in powershell (`clojure --version`
Clojure CLI version 1.11.1.1413):
PS C:\Users\B\Downloads> clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new
Checking out:
Execution error (ExceptionInfo) at clojure.tools.deps.extensions.git/eval1534$fn (git.clj:144).
No known ancestor relationship between git versions for io.github.seancorfield/deps-new
Installing it with clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag """v0.5.3"""}' :as new worked fine.
Could it be your git version? What is your git version?
I'm running git version 2.37.1 (Apple Git-137.1) on mac and latest worked here
I'm on git version 2.39.0.windows.2 , can try to update later
What happens if you do :git/sha """859a6156802eaa49f2488ae087421091018586f7"""?
i get Unreadable arg: "859a6156802eaa49f2488ae087421091018586f7" , tried all kinds of quotation mark variations
I also can't get that to work :/
I'm trying:
clojure -Sdeps '{:deps {io.github.seancorfield/deps-new {:git/sha "859a6156802eaa49f2488ae087421091018586f7"}}}'
Error building classpath. Commit not found for io.github.seancorfield/deps-new in repo at 859a6156802eaa49f2488ae087421091018586f7 but it seems that commit doesn't exist, while it seems above your machine was trying to check out that commit, right
yeah, that could be
hmm, in linux on github codespaces, install-latest works too...i dont understand why it wants clj-new.git in my case...
oh sorry I misread, the sha I referenced belongs to a different library
yeah this works:
clojure -Sdeps '{:deps {io.github.seancorfield/deps-new {:git/sha "c899135de0089059a2770efe79c5022ad874741a"}}}'no problem, all kind of cryptic for me...
What is in your .clojure/deps.edn , anything about deps-new or clj-new?
the above clojure -Sdeps works for me too
in global deps.edn i have just portal, nrepl and these two org.clojure/tools.namespace {:mvn/version "1.4.4"}
org.clojure/clojure {:mvn/version "1.12.0-alpha4"}
under aliases or as top level deps?
under :dev , no dependencies without aliases
ok
what would be a good other tool i could try install latest on?
clojure -Ttools install-latest :lib io.github.borkdude/jet :as jetthat works. sry, i could have looked by myself in the docs...i also tried tools.deps.graph
i think i installed clj-new sometime ago somehow..maybe there is a conflict
you could try to wipe
~/.clojure/tools/tools.ednno sorry
don't wipe that one :)
ah, in clojure tools there is a clj-new.edn
yes, wipe that one
it worked now! so it was a conflict with the older clj-new, thank you
cool
a bit weird though that one installed tool can affect another installed tool
yeah...and maybe not a windows only problem then
perhaps you installed it as new as well previously, so there was a new.edn ?
probably , i can not check this, since the direct install with the version number overwrote this
I can reproduce an error with:
clojure -Ttools install-latest :lib io.github.seancorfield/clj-new :as new
followed by
clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as newyou might want to file a bug report about this in #tools-deps
do you get the same error? because it could well be that i followed the github doc and installed it under clj-new not new
I get a slightly different error, but this is surely a bug
I'll just post it there
thank you! i deleted everything and installed clj-new again under :clj-new alias and after that deps-new and it worked, so you are probably right with the conflicting alias as cause