Hugo upgrade needed

Hi guys! Would you mind updating Hugo version? Many themes run on 0.55+, current one as of this post is 0.65, and I can see in the logs (attached below) that Netlify is using 0.54. Many thanks!

1:23:20 PM: Build ready to start
1:23:25 PM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
1:23:25 PM: build-image tag: v3.3.7
1:23:25 PM: buildbot version: d305548225ac57bb00eb5a596b0b8674e76a4681
1:23:25 PM: Fetching cached dependencies
1:23:25 PM: Starting to download cache of 126.0MB
1:23:26 PM: Finished downloading cache in 1.37126574s
1:23:26 PM: Starting to extract cache
1:23:31 PM: Finished extracting cache in 4.575981489s
1:23:31 PM: Finished fetching cache in 5.991002111s
1:23:31 PM: Starting to prepare the repo for build
1:23:31 PM: Preparing Git Reference pull/6/head
1:23:33 PM: Starting build script
1:23:33 PM: Installing dependencies
1:23:34 PM: Started restoring cached node version
1:23:39 PM: Finished restoring cached node version
1:23:40 PM: v10.20.1 is already installed.
1:23:41 PM: Now using node v10.20.1 (npm v6.14.4)
1:23:41 PM: Attempting ruby version 2.6.2, read from environment
1:23:43 PM: Using ruby version 2.6.2
1:23:43 PM: Using PHP version 5.6
1:23:43 PM: Started restoring cached go cache
1:23:43 PM: Finished restoring cached go cache
1:23:43 PM: unset GOOS;
1:23:43 PM: unset GOARCH;
1:23:43 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
1:23:43 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}”;
1:23:43 PM: go version >&2;
1:23:43 PM: export GIMME_ENV=‘/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
1:23:43 PM: go version go1.12 linux/amd64
1:23:43 PM: Installing missing commands
1:23:43 PM: Verify run directory
1:23:43 PM: Executing user command: hugo
1:23:43 PM: ERROR 2020/05/03 11:23:43 NOTEWORTHY theme does not support Hugo version 0.54.0. Minimum version required is 0.55.2
1:23:43 PM: Building sites …
1:23:44 PM: Total in 498 ms
1:23:44 PM: Error: Error building site: failed to render pages: render of “taxonomyTerm” failed: “/opt/build/repo/themes/noteworthy/layouts/_default/terms.html:6:29”: execute of template failed: template: _default/terms.html:6:29: executing “main” at <.Page.Permalink>: can’t evaluate field Page in type hugolib.OrderedTaxonomyEntry
1:23:44 PM: Skipping functions preparation step: no functions directory set
1:23:44 PM: Caching artifacts
1:23:44 PM: Started saving pip cache
1:23:44 PM: Finished saving pip cache
1:23:44 PM: Started saving emacs cask dependencies
1:23:44 PM: Finished saving emacs cask dependencies
1:23:44 PM: Started saving maven dependencies
1:23:44 PM: Finished saving maven dependencies
1:23:44 PM: Started saving boot dependencies
1:23:44 PM: Finished saving boot dependencies
1:23:44 PM: Started saving go dependencies
1:23:44 PM: Finished saving go dependencies
1:23:44 PM: Error running command: Build script returned non-zero exit code: 255
1:23:44 PM: Failing build: Failed to build site
1:23:44 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 255
1:23:44 PM: Finished processing build request in 19.163750361s

hi there! could you post your package.json please? thanks!

Perry, my apologies - I’ve since found out that the framework version can be set using netlify.toml. Please consider this resolved.

I’ve set hugo version using netlify.toml:

[build]
  publish = "public"
  command = "hugo"

[context.production.environment]
  HUGO_VERSION = "0.126.1"

Netlify, is there a way to automatically use the latest version of Hugo?

By default, Netlify uses the Hugo version that is preinstalled in your site’s initial build image. However, the preinstalled version may not match your local version. To ensure that you’re using a specific version of Hugo, you can set a HUGO_VERSION environment variable. This variable can be set to the version string for any released version after 0.19.