tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
Oliver George 2021-02-11T03:51:23.252100Z

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/f3b8b08721f736da74d9a21f097cd3e9

Oliver George 2021-02-11T03:52:55.253700Z

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

Oliver George 2021-02-11T03:53:52.254600Z

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

seancorfield 2021-02-11T04:34:23.255400Z

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

seancorfield 2021-02-11T04:35:36.256300Z

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 McLean 2021-02-18T21:44:37.358100Z

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!

seancorfield 2021-02-11T04:35:58.256800Z

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

Oliver George 2021-02-11T05:00:26.257200Z

Yep, on circleci

Oliver George 2021-02-11T05:00:32.257500Z

Thanks I'll check that out