Hi all,
So i have a Mix project called table_stage
which provides 2 pairs of tasks:
table_stage.(migrate|rollback)_repos
table_stage.un/instrument
table_stage
itself is a mix dependency in a mix project companies
in the mix.pm
file of table_stage
i have an aliases definition:
defmodule TableStage.Mixfile do
use Mix.Project
def project do
[app: :table_stage,
aliases:
[ "table_stage.migrate": ["table_stage.migrate_repos", "table_stage.instrument"],
"table_stage.rollback": ["table_stage.uninstrument", "table_stage.rollback_repos"]
]
end
end
When issuing the shell cmd mix table_stage.migrate
in the companies
project which has table_stage
as a dependency I get
paul$ mix table_stage.migrate
** (Mix) The task "table_stage.migrate" could not be found. Did you mean "table_stage.migrate_repos"?
Note that i also tried to define aliases without the table_stage
prefix, and those are still not found.
Are aliases
in project
not supposed to be merged [EDIT: with the aliases defined in dependencies]? The doc says nothing about the topic. The unaliased tasks from table_stage
are available in companies
though.