clj-on-windows

Bastian 2023-10-07T08:10:29.178699Z

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: at 859a6156802eaa49f2488ae087421091018586f7 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 at c82384e437a2dfa03b050b204dd2a2008c02a6c7 at c899135de0089059a2770efe79c5022ad874741a Installing it with clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag """v0.5.3"""}' :as new worked fine.

borkdude 2023-10-07T08:13:58.662289Z

Could it be your git version? What is your git version?

borkdude 2023-10-07T08:14:20.363679Z

I'm running git version 2.37.1 (Apple Git-137.1) on mac and latest worked here

Bastian 2023-10-07T08:30:24.687399Z

I'm on git version 2.39.0.windows.2 , can try to update later

borkdude 2023-10-07T08:43:16.242529Z

What happens if you do :git/sha """859a6156802eaa49f2488ae087421091018586f7"""?

Bastian 2023-10-07T08:47:02.968889Z

i get Unreadable arg: "859a6156802eaa49f2488ae087421091018586f7" , tried all kinds of quotation mark variations

borkdude 2023-10-07T08:47:19.476709Z

I also can't get that to work :/

borkdude 2023-10-07T08:48:12.374959Z

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

borkdude 2023-10-07T08:48:29.400149Z

but it seems that commit doesn't exist, while it seems above your machine was trying to check out that commit, right

Bastian 2023-10-07T08:48:46.465019Z

yeah, that could be

Bastian 2023-10-07T08:50:17.061399Z

hmm, in linux on github codespaces, install-latest works too...i dont understand why it wants clj-new.git in my case...

borkdude 2023-10-07T08:50:55.715059Z

oh sorry I misread, the sha I referenced belongs to a different library

borkdude 2023-10-07T08:51:25.920379Z

yeah this works:

clojure -Sdeps '{:deps {io.github.seancorfield/deps-new {:git/sha "c899135de0089059a2770efe79c5022ad874741a"}}}'

Bastian 2023-10-07T08:51:34.783489Z

no problem, all kind of cryptic for me...

borkdude 2023-10-07T08:52:19.533459Z

What is in your .clojure/deps.edn , anything about deps-new or clj-new?

Bastian 2023-10-07T08:53:05.839539Z

the above clojure -Sdeps works for me too

Bastian 2023-10-07T08:55:58.056139Z

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"}

borkdude 2023-10-07T08:56:24.480929Z

under aliases or as top level deps?

Bastian 2023-10-07T08:56:55.741999Z

under :dev , no dependencies without aliases

borkdude 2023-10-07T08:57:04.692879Z

ok

Bastian 2023-10-07T08:57:45.145119Z

what would be a good other tool i could try install latest on?

borkdude 2023-10-07T08:58:39.816429Z

clojure -Ttools install-latest :lib io.github.borkdude/jet :as jet

Bastian 2023-10-07T09:00:58.457009Z

that works. sry, i could have looked by myself in the docs...i also tried tools.deps.graph

Bastian 2023-10-07T09:01:50.746149Z

i think i installed clj-new sometime ago somehow..maybe there is a conflict

borkdude 2023-10-07T09:02:23.056499Z

you could try to wipe

~/.clojure/tools/tools.edn

borkdude 2023-10-07T09:02:39.227689Z

no sorry

borkdude 2023-10-07T09:02:43.590519Z

don't wipe that one :)

Bastian 2023-10-07T09:02:48.946179Z

ah, in clojure tools there is a clj-new.edn

borkdude 2023-10-07T09:02:54.743529Z

yes, wipe that one

Bastian 2023-10-07T09:05:15.901759Z

it worked now! so it was a conflict with the older clj-new, thank you

borkdude 2023-10-07T09:06:15.818149Z

cool

borkdude 2023-10-07T09:06:35.110959Z

a bit weird though that one installed tool can affect another installed tool

Bastian 2023-10-07T09:06:50.344629Z

yeah...and maybe not a windows only problem then

borkdude 2023-10-07T09:07:02.004009Z

perhaps you installed it as new as well previously, so there was a new.edn ?

Bastian 2023-10-07T09:08:02.671259Z

probably , i can not check this, since the direct install with the version number overwrote this

borkdude 2023-10-07T09:08:14.870579Z

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 new

borkdude 2023-10-07T09:08:23.602819Z

you might want to file a bug report about this in #tools-deps

Bastian 2023-10-07T09:10:23.658729Z

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

borkdude 2023-10-07T09:10:57.433189Z

I get a slightly different error, but this is surely a bug

borkdude 2023-10-07T09:11:19.989079Z

I'll just post it there

Bastian 2023-10-07T09:15:20.046869Z

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