-
Notifications
You must be signed in to change notification settings - Fork 257
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
Bug: Magefile in .mage subdirectory stopped working in Go 1.16 #336
Comments
Looks like the problem is this:
I have simply renamed the |
I think I've found the reason here:
|
The problem is in Go, not in Mage… will close this issue. |
Hey! sorry for commenting this closed issue, but could you try creating a go.mod file in .mage? that way even the magefiles dependecies are in their own module |
We are now using Magefile quite extensively in majority of our projects.
In order to separate it from the app code, we put the magefile.go or other mage-related files into a
.mage
subdirectory and configure the mage run like this in our Makefile:The
.mage\mage.go
…… is just a wrapper around the
magefile.go
The
.DEFAULT
target allows us to run anymage
target like amake
target, so we can run e.g.make build
instead ofmake mage args="build"
This has stopped working after upgrading to Go 1.16.
The problem is this line:
It doesn't find any Go files:
How to reproduce:
magefile.go
in a subdirectory, e.g..mage\magefile.go
Expected behaviour:
The text was updated successfully, but these errors were encountered: