Fork me on GitHub
#tools-deps
<
2019-10-24
>
amarjeet05:10:43

Hi, is there a way to provide credentials while using private git repo as a dependency in deps.edn? I want to use my private git repos in my project, but I am getting credentials related error.

alexmiller12:10:21

What kind of credentials?

alexmiller12:10:56

ssh is supported, user/pw is not currently

amarjeet14:10:14

@U064X3EF3 For ssh, should I supply an additional key as :ssh in the deps map, in addition to :git/url and :sha?

alexmiller15:10:58

we use the ssh-agent as a source for identity checking

alexmiller15:10:44

see https://clojure.org/reference/deps_and_cli and search for "Git configuration" for more info

alexmiller15:10:11

as a general principle, you will never put any kind of creds in deps.edn

amarjeet15:10:39

Got it, makes sense. I will do it and try. Thanks much 🙂