Fork me on GitHub
#leiningen
<
2024-04-14
>
markx01:04:38

Hi all, Looks like leiningen doesn't have plan to support git repos as deps, and all the third-party plugins I could find for this are unmaintained. How do you tackle this issue?

seancorfield01:04:20

As long as the plugins work, it doesn't really matter whether they seem maintained or not...? A lot of Clojure libraries look unmaintained but there really just "done" and they do their one single purpose really well.

4
vemv08:04:15

https://github.com/reifyhealth/lein-git-down works spectacularly well Too bad it's been archived (probably someone would have been happy to host it elsewhere), but I haven't stopped using it for some 5 years

hifumi12317:04:48

I also use lein-git-down. Recently archived but it has the same functionality as deps.edn, and it supports git repos with project.clj too

markx17:04:47

Nice. I'll try lein-git-down then. Thanks!

markx17:04:49

@U04V70XH6 In this case they are actually unmaintained, not just look so. e.g. https://github.com/RickMoynihan/lein-tools-deps

seancorfield20:04:53

Yes, sometimes a specific project will indicate that it probably shouldn't be used for various reasons. I have a number of projects that I have archived because there are better ways to solve the same problem now -- and with a few projects, I've searched online for other projects that use mine and created issues there suggesting those projects migrate to whatever is the better solution. Here's my misguided attempt to integrate tools.deps into Boot, for example: https://github.com/seancorfield/boot-tools-deps (basically the same as Rick's project but for Boot instead of Leiningen). lein-git-down uses tools.gitlibs (rather than tools.deps) and you can see what has changed there since the 1.0.100 version it uses: https://github.com/clojure/tools.gitlibs/blob/master/CHANGELOG.md

seancorfield20:04:08

(if this sort of thing concerns you enough, you could consider migrating from Leiningen to the Clojure CLI / deps.edn / tools.build / build.clj -- but as long as lein and the plugins you are using continue to work, you're alright)