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 ?
... I tried using :local/root with a :sha but I get "Coord type is ambiguous:"
You can use a git dep to the local dir
I don’t off hand remember the git file url syntax but that should work and then you can use :git/sha with it
I think it’s just basically a :git/url “<file:///srv/git/project.git|file:///srv/git/project.git>”
Or you might be fine with just a path, not the url, try both
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 !
Yeah, :git/sha is the preferred key, :sha is deprecated