Override mix deps.get in child app from umbrella app

Given an umbrella project like this :

app/
  app1
    mix.exs
  app2
    mix.exs
mix.exs

I need to extend mix deps.get task in app1 only. It is easy to that using an alias:

defp aliases do
  [ "deps.get" : ["deps.get", "other.task"] ]
end

Running mix deps.get from the apps/app1 folder properly calls the task.

However, running mix deps.get from the parent umbrella app does not call it.

  • I’m assuming that calling a task from the umbrella project should call the task with the same name in child projects. Am I wrong on that ?
  • If so, is there a way to achieve what I want to do ?

Thanks.

1 Like