I have forked Hugo, created a branch and committed some changes to the internal templates locally.
But when I run mage generate to sync the changes I get:
can't load package: package /home/alex/work/src/hugo/tpl/tplimpl/embedded/generate: import "/home/alex/work/src/hugo/tpl/tplimpl/embedded/generate": cannot import absolute path
I have edited the magefile.go to the following:
packageName = "$GOPATH/src/hugo/"
What am I missing?
EDIT
Turns out that I was setting the path the wrong way. It should have been:
packageName = "hugo"
Also mage has some aggressive and slightly misleading error handling see here
![]()