tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
borkdude 2020-08-17T08:56:34.240Z

Creating uberjars with depstar native in bb now also works on Windows:

🦜 1
πŸŽ‰ 2
jimberlage 2020-08-17T13:40:25.242200Z

Anyone ever seen a message like the following after updating the :sha of a git dependency:

Error building classpath. Destination path "my-lib" already exists and is not an empty directory
org.eclipse.jgit.api.errors.JGitInternalException: Destination path "my-lib" already exists and is not an empty directory

2020-08-17T13:43:14.242600Z

you can delete local artifacts in $HOME/.gitlibs/{libs,_repos} and restart the repl

2020-08-17T13:44:09.242900Z

I don’t know exactly what cause that problem. In my case it happens after changing :git/url

alexmiller 2020-08-17T13:44:53.243100Z

I believe this is the result of parallel downloading to gitlibs messing up one of the cached git dirs

alexmiller 2020-08-17T13:50:52.243300Z

if you clear your ~/.gitlibs (either fully or selectively) and then do clj -Sforce -Sthreads 1 that should force a re-download singlethreaded

alexmiller 2020-08-17T13:51:16.243500Z

we have a ticket for this, I haven't had a chance to really look at in depth yet

jimberlage 2020-08-17T13:55:58.243700Z

Thanks! Trying that revealed another error - technically auth-related, but testing ssh pushes/pulls to github on this repo still works for me, so I'm wondering if this is somethimg on my end or a symptom of a different bug:

Error building classpath. git@github.com:me/my-lib.git: USERAUTH fail

alexmiller 2020-08-17T13:59:12.243900Z

you'll need to debug why it's not finding the key: 1. is ssh-agent running? if not, start it 2. does ssh-add -l list your public key? if not, add it 3. if you're on a Mac, check whether your ~/.ssh/config has Host * / IdentityFile in it, if so comment that out or remove it

πŸ’― 1
alexmiller 2020-08-17T13:59:48.244100Z

after that, things get trickier to debug, could be key type

jimberlage 2020-08-17T14:05:43.244300Z

Looks like the bit about the IdentityFile line fixed it. Thank you

alexmiller 2020-08-17T14:14:03.244500Z

:thumbsup: