Fork me on GitHub
#babashka
<
2022-12-09
>
borkdude18:12:33

You can now install the latest dev-build of #CLX41ASCS using:

bash <(curl ) --dev-build --dir /tmp

Martynas Maciulevičius22:12:04

What is a good way to download git source dependency via deps.edn when the repository is private? I have a project in gitlab that I'm testing around. I have a ssh certificate but it's with a password. And I don't want to do one without a password. Also I wanted this read access to not be able to write into the repository but I don't want to create a separate gitlab account so that I'd be able to specify that the second account has a read permission to my project. I also was thinking about personal gitlab's access tokens that could allow to access git+http but they expire after 4 weeks. Are these all possible options? Maybe there is a better way :thinking_face: I was thinking that I could share my library but not publish it fully.

Alex Miller (Clojure team)22:12:20

if you set GITLIBS_TERMINAL=true I think it will prompt you

Alex Miller (Clojure team)22:12:45

step 1 is really - get it to work the way you want outside the Clojure CLI. the Clojure CLI is just shelling out to git so whatever you got working should also work.

Martynas Maciulevičius08:12:55

Yes, that's a good way to think about it. I was also thinking how I could combine a secondary SSH certificate with the dependency's git URL resolution. For instance if I use io.gitlab.__/__ as for the dependency then it finds that it's . But how can I specify to fetch from so that ~/.ssh/config would then be able to match using its rules? Is there a format to specify the exact URL in this case? I sometimes do it when I want to have a different SSH certificate for something. Then I do git remote add origin git@<different-domain>/... And then I can match this different domain in ssh config. And redirect to actual domain but with the chosen SSH certificate.

Alex Miller (Clojure team)15:12:52

You can specify a specific :git/url

Martynas Maciulevičius18:12:07

Ah, that would work :thinking_face: