-
Notifications
You must be signed in to change notification settings - Fork 3.4k
The task which has a second name with underscore (compile.yo_yo) could not be found #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just for curiosity, which module names were you using? |
In any case, If you want to define a task compile.yo_yo, you need to define a module:
Let me know if you find further issues. :) |
Something wrong with it. I want to have the mix task which named as a compile.yo_yo
As for me it looks like a bug where expected result should be:
I'll fix that if you agree |
Ops, sorry. You are correct. The module name should be |
good |
GIVEN:
There are three identical task definitions
use Mix.Task
@shortdoc "Compile Dynamo source files"
def run(_) do
IO.puts @shortdoc
end
AND:
$ mix compile
=> Compiled lib/mix/tasks/yo.ex
=> Compiled lib/mix/tasks/compile.yo_yo.ex
=> Compiled lib/mix/tasks/compile.yo.ex
WHEN:
$ mix yo
=> Compile Dynamo source files
WHEN:
$ mix complile.yo
=> Compile Dynamo source files
BUT:
$ mix complile.yo_yo
=> The task compile.yo_yo could not be found
The text was updated successfully, but these errors were encountered: