christhekeele

christhekeele

This feels to me like mix is hitting an edge case resolving both modules available within your project and dependencies, and also modules installed by archives (like the hex tasks). Iā€™d consider opening up an issue in Elixir with these reproduction instructions, reporting that mix and :aliases may not be working as intended with archives.

0
Post #11
jonatanklosko

jonatanklosko

Creator of Livebook

You can do this:

def aliases do
  [
    testtask: [
      "deps.get",
      "deps.compile",
      # Compilation prunes code paths, so Hex task modules are no
      # longer available. We need to bring the application back
      # explicitly, in order to access its modules.
      fn _ -> Mix.ensure_application!(:hex) end,
      "hex.audit"
    ]
  ]
end
6
Post #12
ā€” All posts loaded ā€”