Fork me on GitHub
#tools-deps
<
2022-08-30
>
Drew Verlee15:08:53

can you tell deps to use a different git commit of a local git repo/project then the one the project is currently set to?

Alex Miller (Clojure team)15:08:44

if you're using it as :local/root then no

Alex Miller (Clojure team)15:08:58

if you're using it as a git dep, then you can pick any commit you like

Alex Miller (Clojure team)15:08:39

recent versions of the CLI do also support using local file-based git urls

👍 1
Alex Miller (Clojure team)16:08:42

for example, something like this works:

{:deps 
 {foo/bar {:git/url "../../code/tools.deps.alpha/"
           :git/sha "b2096587b8c9ead9f47daa6258d3a4fddb18ebde"}}}
even if the local path is at some newer sha

Drew Verlee16:08:28

awesome! i should have looked closer at the docs. I'm considering that it might be worth cloneing more projects so it's easier to work with them.

Alex Miller (Clojure team)16:08:43

it will "check out" that file based project into the gitlibs and create a working tree at the requested sha

👍 1