Skip to content

Task module discovery goes on an unexpected journey #131

@crccheck

Description

@crccheck

The behavior invoke currently has for task module discovery: http://invoke.readthedocs.org/en/0.6.1/concepts/loading.html#task-module-discovery is counter to what I expect.

The Setup

I have my project with many dependencies, with a tasks.py with invoke tasks in it. I type invoke. I'm using invoke==0.7.0

My expectation

Invoke discovers the tasks in tasks.py.

What actually happens

Invoke walks through my python path and finds a random tasks module in a random package and tries to run it instead and ends up waking a dragon. In another project with an older version of invoke, I know finds a tasks.py for celery.

Reasoning

I would expect the tasks module discovery to find the same module that import tasks finds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions