librelist archives

« back to archive

higher-order tasks cannot call aliases in 2.1

higher-order tasks cannot call aliases in 2.1

From:
Stuart Sierra
Date:
2013-04-01 @ 14:07
Possible regression from 2.0.0 to 2.1.0: `do` cannot  invoke aliases.

For example, this project.clj:

(defproject foo "0.1.0-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.5.1"]]
  :aliases {"hello" ["run" "-m" "clojure.main" "-e" "(println :hello)"]})

And the following shell session:

foo $ lein_2_0_0 hello
:hello
foo $ lein_2_0_0 do hello
:hello

foo $ lein_2_1_0 hello
:hello
foo $ lein_2_1_0 do hello
'hello' is not a task. See 'lein help'.

Can someone else confirm?

-S

Re: [leiningen] higher-order tasks cannot call aliases in 2.1

From:
Jean Niklas L'orange
Date:
2013-04-01 @ 14:45
On 1 April 2013 16:07, Stuart Sierra <mail@stuartsierra.com> wrote:

> Can someone else confirm?
>

Confirmed on both master and 2.1.2. I've made an issue for the problem:
https://github.com/technomancy/leiningen/issues/1120

Seems like commit

551479f<https://github.com/technomancy/leiningen/commit/551479fc5ae4fbae0380f62d45286f0b28116db6>
was
the latest commit related to aliases and HOT, though I can't be too sure
that it is the one which has killed this functionality.

-- 
Regards,
Jean Niklas L'orange