Fork me on GitHub
#tools-deps
<
2021-02-11
>
Oliver George03:02:23

I'm struggling with a CI build. I have a public git repo dependency which seems to get converted from https -> ssh and ends up with an auth fail error.

Cloning: 
Error building classpath. : Auth fail
org.eclipse.jgit.api.errors.TransportException: : Auth fail
https://gist.github.com/olivergeorge/f3b8b08721f736da74d9a21f097cd3e9

Oliver George03:02:55

Hoping for "Oh yeah, jgit might use ssh: for a https: repo if you have XXX set".

Oliver George03:02:52

(this is a new repo but copies from an existing working one... we've upset something and I can't think how)

seancorfield04:02:23

Check your local git config -- I bet it is swapping https for git? This is on CirceCI right @olivergeorge?

seancorfield04:02:36

For some reason, they started using a default git config that rewrites the URLs -- the solution is to remove the config as part of your setup: https://github.com/seancorfield/honeysql/blob/v2/.circleci/config.yml#L11-L13

Kira McLean21:02:37

ah this is brilliant! I worked around the issue by re-writing the ssh key to be one that jgit could handle.. wonder if this would be a simpler fix!

seancorfield04:02:58

Lots of Clojure devs have been complaining about to the #circleci folks 😐

Oliver George05:02:26

Yep, on circleci

Oliver George05:02:32

Thanks I'll check that out