tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
robert-stuttaford 2020-06-16T09:18:43.345900Z

apologies if an FAQ (i did try to google this) - should :git/url work if the target sha is in a feature branch? so tools.gitlibs appears to be failing silently - situation: i see the gitlibs' "Checking out: " message, but no errors, and then when tools.deps tries to use the checkout, it fails because it's not there. i checked ~/.gitlibs manually and found the folder to be missing.

borkdude 2020-06-16T09:58:40.346500Z

@robert-stuttaford yes. have you tried -Sforce? I find myself needing that occasionally with git deps

robert-stuttaford 2020-06-16T11:49:05.347200Z

-Sforce doesn't seem to make a difference, unfortunately, thanks @borkdude

alexmiller 2020-06-16T11:51:29.348600Z

Might be something wrong with object dir - you could try rm’ing that under gitlibs

alexmiller 2020-06-16T11:53:47.349400Z

Can’t say I’ve seen this kind of problem before

vlaaad 2020-06-16T11:55:52.349700Z

maybe feature branch isn’t pushed? 🙂

alexmiller 2020-06-16T11:56:59.350Z

should fail if sha isn’t known

robert-stuttaford 2020-06-16T12:19:30.351Z

i have one other hash in the folder, so it's defo succeeded at least once before. i'll scrub and retest! (feature branch defo pushed haha)

robert-stuttaford 2020-06-16T12:22:07.352300Z

the commit hash that succeeded is on the default github branch (`develop` in our case), whereas the one that failed is in a feature branch. could it be that the git checkout it's doing isn't able to find the feature branch's commit?

alexmiller 2020-06-16T12:24:00.353400Z

Shouldn’t matter at all, I do this all the time

robert-stuttaford 2020-06-16T12:24:03.353500Z

scrubbing and retesting yields the same results

alexmiller 2020-06-16T12:25:35.355800Z

You sure you have a commit sha and not like a tree sha or something

robert-stuttaford 2020-06-16T12:26:17.356600Z

yes - i can visit the sha on http://github.com/org/repo/commit/SHA and i have it checked out locally

robert-stuttaford 2020-06-16T12:26:50.357100Z

Checking out: git@github.com:Cognician/Base.git at 03c46df13f5b2a17474718530d5b9214f7ae236e
Checking out: git@github.com:Cognician/Monolith.git at 641eddbb7d909c671fdaa7b9eaba64f14bc8f73c
Error building classpath. Missing unknown 641eddbb7d909c671fdaa7b9eaba64f14bc8f73c
the first line is one that works (it's there after i run), the second line is the one that's meant to work but doesn't (not there after i run), and the third line is the downstream failure due to the missing folder.

robert-stuttaford 2020-06-16T12:27:26.357800Z

i guess the next step is to dig with tools.gitlibs at the repl!

alexmiller 2020-06-16T12:27:42.358400Z

Yeah that definitely drops down a layer

robert-stuttaford 2020-06-16T12:28:00.358700Z

glad to know that this should work, thank you

alexmiller 2020-06-16T12:28:14.359200Z

Let me know how you make out

robert-stuttaford 2020-06-16T12:28:53.359600Z

interestingly this resolves fine on our CI instance, but not locally :thinking_face: on the CI, i see Skipping coordinate: with the same sha, presumably because it's already got it. of course, good old :local/root works locally.