Netlify not using extended Hugo

So I tried to use hugo 0.120.2 on netlify for the first time. but it keeps on failing to build due to not using the correct “extended” version of Hugo, even though I explicitly set HUGO_EXTENDED = true in netlify.toml and environment variables. This almost sent me to another hosting service.

After asking GPT, apparently there is a potentially common issue with build images. And for some bizarre reason my image on my brand new account/site is set to use “Ubuntu Noble 24.04” instead of the designated “(default)” 20.04 (seems not intended behavior)! After manually switching to the 20.04, everything works.

Here is what GPT suggested and worked for me:

"
6. Update Build Image:

Netlify’s build environment might affect the availability of certain Hugo versions. Consider updating the build image:

  • Navigate to Site settings > Build & deploy > Continuous Deployment > Build image selection.
  • Select the latest available build image (e.g., Ubuntu Focal 20.04).
  • Save the changes and redeploy your site.
    "
1 Like

Duplicate of: Hugo Build Failed when using Ubuntu Noble 24.04 build image