leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
Yehonathan Sharvit 2020-06-15T06:53:43.253700Z

Is it possible to use a lein template from a private repo? Where should I store the credentials for the private repo? Is there a way to tell lein to automatically fetch the latest version of the template from the private repo?

2020-06-15T13:42:09.254Z

@viebel pretty sure this has been discussed in leiningen issues before. let’s see

Yehonathan Sharvit 2020-06-15T13:42:33.254400Z

hopefully @mikerod

2020-06-15T13:44:38.254600Z

related https://github.com/technomancy/leiningen/issues/1785 ?

2020-06-15T13:44:44.255Z

but looks like it was fixed in this case

2020-06-15T13:44:59.255400Z

not sure what your setup is for specifying these private repos?

2020-06-15T13:45:37.256200Z

I find it odd the solution seems to be to use the :user ~/lein/.profiles considering usually putting any :repositories in there is a warning for non-reproducible builds, but in the case of templates there isn’t anything really better to look at

2020-06-15T13:45:44.256400Z

since there is no project yet

2020-06-15T13:45:57.256600Z

if that’s not it, perhaps somewhere in this https://github.com/technomancy/leiningen/issues?q=is%3Aissue+template+repository

Yehonathan Sharvit 2020-06-15T13:48:35.256800Z

Testing it…

Yehonathan Sharvit 2020-06-15T15:40:33.257800Z

I solved it by adding :plugin-repositories [["my-company" {:url "<https://maven.my-company.fun/releases>"}]] to :user in profiles.clj

Yehonathan Sharvit 2020-06-15T15:40:42.258100Z

Thank you for your help @mikerod

2020-06-15T15:41:43.258500Z

@viebel nice, that’s what I was hoping would work - no prob