Fork me on GitHub
#leiningen
<
2020-06-15
>
Yehonathan Sharvit06:06:43

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?

mikerod13:06:09

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

mikerod13:06:44

but looks like it was fixed in this case

mikerod13:06:59

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

mikerod13:06:37

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

mikerod13:06:44

since there is no project yet

Yehonathan Sharvit15:06:33

I solved it by adding :plugin-repositories [["my-company" {:url ""}]] to :user in profiles.clj

Yehonathan Sharvit15:06:42

Thank you for your help @mikerod

mikerod15:06:43

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