[solved] Dev Hugo could not build due to vendor errors

Hello,

I was up to update my environment, and I get:

~/dev/go/src/github.com/spf13/hugo$ go get -v
github.com/spf13/hugo/parser
github.com/spf13/hugo/config
github.com/spf13/hugo/utils
github.com/spf13/hugo/hugofs
# github.com/spf13/hugo/utils
utils/utils.go:24: undefined: jwalterweatherman.Notepad
utils/utils.go:39: undefined: jwalterweatherman.Notepad
# github.com/spf13/hugo/parser
parser/frontmatter.go:55: assignment count mismatch: 2 = 1
github.com/spf13/hugo/helpers
# github.com/spf13/hugo/helpers
helpers/general.go:256: cannot use jwalterweatherman.FEEDBACK (type jwalterweatherman.Feedback) as type logPrinter in field value:
        jwalterweatherman.Feedback does not implement logPrinter (Println method has pointer receiver)
~/dev/go/src/github.com/spf13/hugo$

I am looking at branch upstream/master as of commit 2bea9d0ca19fb442803abf57171e89b9d824b154.

What am I doing wrong?
Thank you by advance!

An early pain point with Go development was with changes to third-party packages breaking compilation (or worse, breaking an API). Hugo uses vendoring to handle that. That means that you have to use govendir to fetch Hugo. There’s a short note in that link above which gives you the steps.

Thank you @bep. I think this will solve my issue, since I forgot the govendor think. Have a good day!

Edit: and thank you @michael_henderson too!

1 Like