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

Improve error message on wrong type of mg.Deps argument (#240) #241

Merged
merged 2 commits into from
Jul 18, 2019
Merged

Improve error message on wrong type of mg.Deps argument (#240) #241

merged 2 commits into from
Jul 18, 2019

Conversation

misha-ridge
Copy link
Contributor

This change adds a location of mg.Deps invocation, shrinking the search space
from "all your build scripts" to "this particular mg.Deps invocation"

@natefinch
Copy link
Member

Looks good, but can you write a test for it? Can be pretty simple, just something that'll break if we change the number of function calls between the name and the error?

This change adds a location of mg.Deps invocation, shrinking the search space
from "all your build scripts" to "this particular mg.Deps invocation"
@misha-ridge
Copy link
Contributor Author

Sure, added a test.

@natefinch
Copy link
Member

hmm probably some problem on tip from go modules, I'll look into it.

@misha-ridge
Copy link
Contributor Author

Yes, I saw this test failing with modules.

Copy link
Member

@natefinch natefinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@natefinch natefinch merged commit 05f8c9d into magefile:master Jul 18, 2019
mojzesh pushed a commit to mojzesh/mage that referenced this pull request 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 pull request 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants