-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Hugo Build Timeout Due to Recursive Call in head.html Partial #275
Comments
Signed-off-by: harshita91 <[email protected]>
What is the hugo version you're running? I can't reproduce this issue with: $ hugo version
hugo v0.127.0+extended darwin/arm64 BuildDate=2024-06-05T10:27:59Z VendorInfo=brew |
Hi @harshita9104, Like @lbroudoux, I tried to reproduce on my side using recent versions of Hugo but without success: 1/
✅
✅
2/
✅
✅
Can you try to reproduce or give directions? Cause currently, we do not see any issues. |
And can you ensure you are using Hugo's "extended" version (which is mandatory for the theme we are using)? |
@harshita9104 I am looking forward to your feedback to see if we missed something. |
Describe the bug
While setting up the project locally, Hugo fails to build the site due to an infinite recursive call in head.html, causing a timeout error. This prevents the site from rendering and makes local development impossible.
Error: error building site: render: failed to render pages: render of "E:/Projects/microcks.io/content/documentation/tutorials/first-soap-mock.md" failed:
"E:\Projects\microcks.io\themes\microcks\layouts\documentation\baseof.html:9:9": execute of template failed:
template: documentation/single.html:9:9: executing "documentation/single.html" at <partial "essentials/head.html" .>:
error calling partial: partial "essentials/head.html" timed out after 30s. This is most likely due to infinite recursion.
Expected behavior
Hugo should successfully build the site without timing out.
The local development server should start, allowing developers to preview the site on http://localhost:1313/.
No infinite recursion should occur in the head.html partial.
Actual behavior
Hugo build fails with a timeout error due to infinite recursion in head.html.
The site does not render, making local development impossible.
Hugo logs indicate a recursive partial call in themes/microcks/layouts/documentation/baseof.html and themes/microcks/layouts/_default/baseof.html.
How to Reproduce?
1.Clone the repository and navigate to the project directory.
2. Run: hugo server --bind 0.0.0.0 --baseURL=http://localhost:1313/ --logLevel debug
3. The build process times out with a error.
4. The local development server does not start successfully.
Microcks version or git rev
No response
Install method (
docker-compose
,helm chart
,operator
,docker-desktop extension
,...)No response
Additional information
Check for self-referencing calls:
{{ partial "essentials/head.html" . }}
This can cause an infinite loop if head.html calls itself.
Increase Hugo Timeout (Temporary Workaround)
The text was updated successfully, but these errors were encountered: