tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
Eamonn Sullivan 2021-01-21T19:09:45.016800Z

Hi all, I'm trying to build a tools.deps project at work using AWS CodeBuild. One huge obstacle I've had in getting Clojure into work is that deps.edn cannot resolve our internal libs (long story, but ssl cert-based auth), so I thought I'd try this kind of container-based building with :git/url refs instead and a personal access token. This works to check out the top-level repo, but when Clojure tries to resolve dependencies:

Error building classpath. <https://github.com/bbc/some-internal-lib>: Authentication is required but no CredentialsProvider has been registered
org.eclipse.jgit.api.errors.TransportException: <https://github.com/bbc/some-internal-lib>: Authentication is required but no CredentialsProvider has been registered
These references work fine locally, but I'm not sure how, so I'm not sure how to cajole CodeBuild into doing it... Apologies if this the wrong channel. I seem to be unclear on the role of tools-deps. (And there's a ticket already about providing cert-related Java opts to Clojure.)

pavlosmelissinos 2021-01-21T19:19:43.017100Z

According to this: https://clojure.org/reference/deps_and_cli#_git for private git repos it's better to use the ssh protocol under :git/url and set up the ssh-agent separately, so you might want to try it out (unless someone more knowledgeable chimes in with a better suggestion, which is pretty probable 😄).

alexmiller 2021-01-21T19:38:07.017600Z

we don't currently have support for git https with auth

😞 1
alexmiller 2021-01-21T19:38:25.017900Z

if that's what you're trying to do