Skip to content
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

"Invalid type for dependent function" does not have any context #240

Open
misha-ridge opened this issue May 11, 2019 · 0 comments
Open

"Invalid type for dependent function" does not have any context #240

misha-ridge opened this issue May 11, 2019 · 0 comments

Comments

@misha-ridge
Copy link
Contributor

If an invalid kind of dependency is passed into mg.Deps, then it's pretty hard to nail down what has happened, as the error message does not provide any location where that happened:

Error: Invalid type for dependent function: func(string, string). Dependencies must be func(), func() error, func(context.Context), func(context.Context) error, or the same method on an mg.Namespace.

It would be nice to be able to point to at least mg.Deps invocation, or, better, to the argument that caused the problem.

natefinch pushed a commit that referenced this issue Jul 18, 2019
This change adds a location of mg.Deps invocation, shrinking the search space
from "all your build scripts" to "this particular mg.Deps invocation"
mojzesh pushed a commit to mojzesh/mage that referenced this issue Oct 12, 2019
magefile#241)

This change adds a location of mg.Deps invocation, shrinking the search space
from "all your build scripts" to "this particular mg.Deps invocation"
mojzesh pushed a commit to mojzesh/mage that referenced this issue Oct 12, 2019
magefile#241)

This change adds a location of mg.Deps invocation, shrinking the search space
from "all your build scripts" to "this particular mg.Deps invocation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants