10:19:11 AM: Netlify Build
10:19:11 AM: ────────────────────────────────────────────────────────────────
10:19:11 AM:
10:19:11 AM: ❯ Version
10:19:11 AM: @netlify/build 29.12.1
10:19:11 AM:
10:19:11 AM: ❯ Flags
10:19:11 AM: baseRelDir: true
10:19:11 AM: buildId: 6485755bb0a5c500082ad344
10:19:11 AM: deployId: 6485755bb0a5c500082ad346
10:19:11 AM:
10:19:11 AM: ❯ Current directory
10:19:11 AM: /opt/build/repo
10:19:11 AM:
10:19:11 AM: ❯ Config file
10:19:11 AM: No config file was defined: using default values.
10:19:11 AM:
10:19:11 AM: ❯ Context
10:19:11 AM: production
10:19:11 AM:
10:19:11 AM: Build command from Netlify app
10:19:11 AM: ────────────────────────────────────────────────────────────────
10:19:11 AM:
10:19:11 AM: $ hugo
10:19:12 AM: Building sites … ERROR 2023/06/11 07:19:12 render of "section" failed: execute of template failed: template: _default/list.html:66:6: executing "main" at <partial "cover.html" (dict "cxt" . "IsHome" true "isHidden" $isHidden)>: error calling partial: "/opt/build/repo/themes/PaperMod/layouts/partials/cover.html:13:15": execute of template failed: template: partials/cover.html:13:15: executing "partials/cover.html" at <hugo>: can't evaluate field IsExtended in type interface {}
ERROR 2023/06/11 07:19:12 render of "home" failed: execute of template failed: template: _default/list.html:66:6: executing "main" at <partial "cover.html" (dict "cxt" . "IsHome" true "isHidden" $isHidden)>: error calling partial: "/opt/build/repo/themes/PaperMod/layouts/partials/cover.html:13:15": execute of template failed: template: partials/cover.html:13:15: executing "partials/cover.html" at <hugo>: can't evaluate field IsExtended in type interface {}
Total in 327 ms
10:19:12 AM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:25:6: executing "main" at <partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden)>: error calling partial: "/opt/build/repo/themes/PaperMod/layouts/partials/cover.html:13:15": execute of template failed: template: partials/cover.html:13:15: executing "partials/cover.html" at <hugo>: can't evaluate field IsExtended in type interface {}
10:19:12 AM: "build.command" failed
10:19:12 AM: ────────────────────────────────────────────────────────────────
10:19:12 AM:
10:19:12 AM: Error message
10:19:12 AM: Command failed with exit code 255: hugo (https://ntl.fyi/exit-code-255)
10:19:12 AM:
10:19:13 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:19:12 AM: Error location
10:19:12 AM: In Build command from Netlify app:
10:19:12 AM: hugo
10:19:12 AM:
10:19:12 AM: Resolved config
10:19:12 AM: build:
10:19:12 AM: command: hugo
10:19:12 AM: commandOrigin: ui
10:19:12 AM: environment:
10:19:12 AM: - HUGO_VERSION
10:19:12 AM: publish: /opt/build/repo/public
10:19:12 AM: publishOrigin: ui
10:19:12 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:19:13 AM: Failing build: Failed to build site
10:19:13 AM: Finished processing build request in 20.054s
My site builds fine locally am sure I missed some simple thing maybe it happenned after theme update
There’s something wrong with the code which we cannot help with. You can post this on Hugo forums.