Thanks a lot bep and moorereason. It was indeed my issue.
I moved my files from “C:\go_code\src\hugo” to “C:\go_code\src\github.com\spf13\hugo” and it worked.
I did a manual .zip install which should have been:
- Unzip to “C:\go_code\src\github.com\spf13\hugo”
- Open a cmd at “C:\go_code\src\github.com\spf13\hugo”
- input in the cmd: govendor sync
- input in the cmd: go install github.com\spf13\hugo
That alternative install with govendor seems cleaner as it doesn’t pollute the GOPATH folder with all of hugo’s dependencies (they are installed under “hugo/vendor” instead).
I believe this install method hasn’t been supported in all versions (as govendor support seems to have been added a few months ago), but is it a supported install method?
If that’s the case, I suggest adding it as maybe “Option 2” under “Build and Install the Binaries from Source (Advanced Install)” at:
(*) A note should probably be added with a mention that it’s supported as of version xyz.