Go build error

I get this error when running go build -o hugo main.go


hugolib/site.go:398: s.s.Deps.PathSpec.BaseURL.URL().Port undefined (type *url.URL has no field or method Port)

Any pointers to what i am doing wrong?

I would guess you have a too old Go version.

1 Like

Yup. wrong go version. I dont know why i didnt check that. Thanks man.