Skip to content

Magefiles in their own nested Go module #464

Answered by natefinch
yann-soubeyrand asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, I think this is because mage is actually running in the root directory, so it's using the go.mod of the root directory. It probably shouldn't do that if you have a magefiles directory, instead it should change the current working directory to that directory to build the magefiles.

I think this is fixable, but I'm a little worried it may break other people. I'll have to look at it and do some testing.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yann-soubeyrand
Comment options

@natefinch
Comment options

Answer selected by yann-soubeyrand
@yann-soubeyrand
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants