librelist archives

« back to archive

Specifying the template version for `lein new ...`

Specifying the template version for `lein new ...`

From:
Alexander Yakushev
Date:
2014-04-30 @ 07:22
Hi,

Right now `lein new <template>` fetches and uses the latest version of 
the <template> from Clojars. In my usecase I would benefit from being 
able to specify the exact template version to be used (like, the 
artifact version on the Clojars). Before I start implementing it for my 
template exclusively, is this something that other developers/users 
might want to have in Leiningen? Would it make sense to make `lein new` 
take version argument in general?

Regards,

-- 
Alexander Yakushev
http://bytopia.org

"One does not learn computing by using a hand calculator, but one can
forget arithmetic."
    -- Alan Jay Perlis

Re: [leiningen] Specifying the template version for `lein new ...`

From:
Jean Niklas L'orange
Date:
2014-04-30 @ 14:07
Hello Alexander,

I think it would make sense to let `lein new` take in a `--version`
argument.

If you're interested in adding this as a feature to `lein new`, feel free
to submit an issue and/or PR if you want to implement it.


On 30 April 2014 09:22, Alexander Yakushev <alex@bytopia.org> wrote:

> Hi,
>
> Right now `lein new <template>` fetches and uses the latest version of
> the <template> from Clojars. In my usecase I would benefit from being
> able to specify the exact template version to be used (like, the
> artifact version on the Clojars). Before I start implementing it for my
> template exclusively, is this something that other developers/users
> might want to have in Leiningen? Would it make sense to make `lein new`
> take version argument in general?
>
> Regards,
>
> --
> Alexander Yakushev
> http://bytopia.org
>
> "One does not learn computing by using a hand calculator, but one can
> forget arithmetic."
>     -- Alan Jay Perlis
>
>


-- 
Regards,
Jean Niklas L'orange