Hey ! Just stumbled upon something working with Invoke and I don't know if that's a feature or a bug so I'm filing a small issue !
TL; DR: When having 2 collections module_a and module_b. If I import my_task_b1 from module_b to module_a, then the module_a.my_task_b1 will be a valid invoke task (i.e I can use it and inv -l lists it as well). I don't think it should be the case.
Steps to reproduce
Install invoke (pip install invoke)(I'm using 2.2.0). Here is the folder architecture:
Problem statement
Hey ! Just stumbled upon something working with Invoke and I don't know if that's a feature or a bug so I'm filing a small issue !
TL; DR: When having 2 collections
module_a
andmodule_b
. If I importmy_task_b1
frommodule_b
tomodule_a
, then themodule_a.my_task_b1
will be a valid invoke task (i.e I can use it andinv -l
lists it as well). I don't think it should be the case.Steps to reproduce
Install invoke (
pip install invoke
)(I'm using2.2.0
). Here is the folder architecture:__init__.py
module_a.py
module_b.py
When I run
inv -l
I get the following invoke tasks:Also running it worka:
Is this on purpose ? I would expect not to have
module-a.my-task-b1
!Behaviour I would have expected
I would have expected
inv -l
to output