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: <https://bitbucket.org/********/imas-webapps-common-frontend.git>
Error building classpath. <ssh://git@bitbucket.org/********/imas-webapps-common-frontend.git>: Auth fail
org.eclipse.jgit.api.errors.TransportException: <ssh://git@bitbucket.org/********/imas-webapps-common-frontend.git>: Auth fail
https://gist.github.com/olivergeorge/f3b8b08721f736da74d9a21f097cd3e9Hoping for "Oh yeah, jgit might use ssh: for a https: repo if you have XXX set".
(this is a new repo but copies from an existing working one... we've upset something and I can't think how)
Check your local git config -- I bet it is swapping https
for git
? This is on CirceCI right @olivergeorge?
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
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!
Lots of Clojure devs have been complaining about to the #circleci folks 😐
Yep, on circleci
Thanks I'll check that out