Setting Go Version

Is there any advantage to setting the latest supported Go version in Hugo to the build settings for e.g. Cloudflare Pages or Netlify?

No, there is not.

Even when Go is required to build your site (using Hugo Modules for example)?

If you are going to build from source: Go 1.18

If you use Module Workspaces: Go 1.18

To pull in Hugo modules, I think Go 1.15 is sufficient, and you may be able to go as far back as Go 1.11.

1 Like

Thanks, Joe. When pulling in Hugo modules I thought that maybe we could benefit from some security updates with the latest versions. In any case I guess it doesn’t hurt using the latest one.

Bingo.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.