tools-deps

octahedrion 2023-12-14T11:50:39.887129Z

is there a way to specify an :extra-deps alias to a local library and use a :sha ? The reason is that I want to test different branches of the same local project each in its own REPL, so I'd have a different alias for each REPL each having an :extra-deps for the same library but a different sha for each. Or is there another way to do this ?

octahedrion 2023-12-14T11:51:42.663109Z

... I tried using :local/root with a :sha but I get "Coord type is ambiguous:"

Alex Miller (Clojure team) 2023-12-14T13:40:30.217999Z

You can use a git dep to the local dir

Alex Miller (Clojure team) 2023-12-14T13:41:30.985509Z

I don’t off hand remember the git file url syntax but that should work and then you can use :git/sha with it

Alex Miller (Clojure team) 2023-12-14T13:43:04.529449Z

I think it’s just basically a :git/url “<file:///srv/git/project.git|file:///srv/git/project.git>”

Alex Miller (Clojure team) 2023-12-14T13:44:18.846509Z

Or you might be fine with just a path, not the url, try both

octahedrion 2023-12-15T08:43:35.525649Z

Clojure's dependency system continues to surprise and delight. It worked beautifully and the file:// prefix for :git/url is optional as is the git namespace for :sha (edit: I see that's for backwards compatibility) . I am now able to test two branches of the same lib from another in separate REPLs and compare results. Thank you so much @alexmiller !

Alex Miller (Clojure team) 2023-12-15T12:52:07.773639Z

Yeah, :git/sha is the preferred key, :sha is deprecated