Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Spec documentation doesn't build with Hugo 0.141+ #2084

Open
TheArcaneBrony opened this issue Feb 25, 2025 · 0 comments
Open

[Bug] Spec documentation doesn't build with Hugo 0.141+ #2084

TheArcaneBrony opened this issue Feb 25, 2025 · 0 comments

Comments

@TheArcaneBrony
Copy link

Possibly related to the template that's used:

matrix-spec-cb83c5a-go-modules> Running phase: buildPhase
matrix-spec-cb83c5a-go-modules> hugo: downloading modules …
matrix-spec-cb83c5a-go-modules> hugo: collected modules in 37792 msStart building sites …
matrix-spec-cb83c5a-go-modules> hugo v0.143.1+extended+withdeploy linux/amd64 BuildDate=unknown VendorInfo=nixpkgs
matrix-spec-cb83c5a-go-modules> ERROR render of "/build/source/content/changelog/v1.12.md" failed: "/build/source/layouts/docs/baseof.html:14:7": execute of template failed: template: docs/changelog.html:14:7: executing "docs/changelog.html" at <partial "head.html" .>: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/head.html:29:10": execute of template failed: template: partials/head.html:29:10: executing "partials/head.html" at <partial "dl-asset.html" "https://code.jquery.com/jquery-3.7.1.min.js">: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/dl-asset.html:12:10": execute of template failed: template: partials/dl-asset.html:12:10: executing "partials/dl-asset.html" at <.Err>: can't evaluate field Err in type resource.Resource
matrix-spec-cb83c5a-go-modules> ERROR render of "/build/source/content/_index.md" failed: "/build/source/layouts/docs/baseof.html:14:7": execute of template failed: template: docs/list.html:14:7: executing "docs/list.html" at <partial "head.html" .>: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/head.html:29:10": execute of template failed: template: partials/head.html:29:10: executing "partials/head.html" at <partial "dl-asset.html" "https://code.jquery.com/jquery-3.7.1.min.js">: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/dl-asset.html:12:10": execute of template failed: template: partials/dl-asset.html:12:10: executing "partials/dl-asset.html" at <.Err>: can't evaluate field Err in type resource.Resource
matrix-spec-cb83c5a-go-modules> ERROR render of "/build/source/content/appendices.md" failed: "/build/source/layouts/docs/baseof.html:14:7": execute of template failed: template: docs/single.html:14:7: executing "docs/single.html" at <partial "head.html" .>: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/head.html:29:10": execute of template failed: template: partials/head.html:29:10: executing "partials/head.html" at <partial "dl-asset.html" "https://code.jquery.com/jquery-3.7.1.min.js">: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/dl-asset.html:12:10": execute of template failed: template: partials/dl-asset.html:12:10: executing "partials/dl-asset.html" at <.Err>: can't evaluate field Err in type resource.Resource
matrix-spec-cb83c5a-go-modules> ERROR render of "/build/source/content/changelog/v1.2.md" failed: "/build/source/layouts/docs/baseof.html:14:7": execute of template failed: template: docs/changelog.html:14:7: executing "docs/changelog.html" at <partial "head.html" .>: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/head.html:29:10": execute of template failed: template: partials/head.html:29:10: executing "partials/head.html" at <partial "dl-asset.html" "https://code.jquery.com/jquery-3.7.1.min.js">: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/dl-asset.html:12:10": execute of template failed: template: partials/dl-asset.html:12:10: executing "partials/dl-asset.html" at <.Err>: can't evaluate field Err in type resource.Resource
matrix-spec-cb83c5a-go-modules> Total in 42998 ms
matrix-spec-cb83c5a-go-modules> Error: error building site: render: failed to render pages: render of "/404" failed: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/_default/baseof.html:7:7": execute of template failed: template: 404.html:7:7: executing "404.html" at <partial "head.html" .>: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/head.html:29:10": execute of template failed: template: partials/head.html:29:10: executing "partials/head.html" at <partial "dl-asset.html" "https://code.jquery.com/jquery-3.7.1.min.js">: error calling partial: "/build/hugo_cache/modules/filecache/modules/pkg/mod/github.com/matrix-org/[email protected]/layouts/partials/dl-asset.html:12:10": execute of template failed: template: partials/dl-asset.html:12:10: executing "partials/dl-asset.html" at <.Err>: can't evaluate field Err in type resource.Resource: Resource.Err was removed in Hugo v0.141.0 and replaced with a new try keyword, see https://gohugo.io/functions/go-template/try/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant