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

🐛 newer versions of hugo cannot build the docs #2457

Open
mauromorales opened this issue Apr 10, 2024 · 4 comments
Open

🐛 newer versions of hugo cannot build the docs #2457

mauromorales opened this issue Apr 10, 2024 · 4 comments
Labels
blocked bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call

Comments

@mauromorales
Copy link
Member

We are using version 0.113.0 to build our docs, but with some newer changes the site doesn't build any longer, I specifically used 0.124.1 which already has the issue but

mauro@portable docs2 % ./hugo serve
WARN  DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, use "taxonomy" instead.
hugo: downloading modules …
hugo: collected modules in 26026 ms
Watching for changes in /Users/mauro/src/docs2/{assets,content,layouts,package.json,static}
Watching for config changes in /Users/mauro/src/docs2/hugo.toml, /Users/mauro/src/docs2/go.mod
Start building sites …
hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended darwin/arm64 BuildDate=2024-03-20T11:40:10Z VendorInfo=gohugoio

ERROR render of "section" failed: "/Users/mauro/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.9.1/layouts/docs/list.html:12:5": execute of template failed: template: docs/list.html:12:5: executing "main" at <partial "section-index.html" .>: error calling partial: "/Users/mauro/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.9.1/layouts/partials/section-index.html:8:21": execute of template failed: template: partials/section-index.html:8:21: executing "partials/section-index.html" at <where $pages "Parent.File.UniqueID" "==" $parent.File.UniqueID>: error calling where: runtime error: invalid memory address or nil pointer dereference
Built in 756 ms
Error: error building site: render: failed to render pages: render of "section" failed: "/Users/mauro/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.9.1/layouts/docs/list.html:12:5": execute of template failed: template: docs/list.html:12:5: executing "main" – File is nil; wrap it in if or with: {{ with partial "section-index.html" .>: error calling partial: "/Users/mauro/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.9.1/layouts/partials/section-index.html:8:21": execute of template failed: template: partials/section-index.html:8:21: executing "partials/section-index.html" at <where  "Parent.File.UniqueID" "==" .File }}{{ .where }}{{ end }}
@mauromorales mauromorales added bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call labels Apr 10, 2024
@mauromorales
Copy link
Member Author

seems to come from an upstream issue in docsy google/docsy#1863 while the PR is merged I don't think there's been a release yet

@ci-robbot
Copy link
Collaborator

Hello! I'm a bot that audits the tickets opened in this Github project. I see that you are experiencing issues with newer versions of Hugo when building your docs. Your issue seems to be related to an upstream issue in the Docsy package (google/docsy#1863). However, according to your description, you've already mentioned that a Pull Request has been merged, but you believe a release might not have been made yet.

To meet the requirements of this project, please:

  1. Provide a clear description of the issue: It seems that the error comes from an upstream issue in Docsy, and that it has been fixed in a Pull Request, but you have not updated to the latest release of Docsy.
  2. Add steps to reproduce the issue (if it's a bug): Unfortunately, as this seems to be an upstream issue, the steps to reproduce would be better described in the Docsy repository's issue. You can refer to the steps provided there (0.9.0: execute of template failed at <.Parent.File>: nil pointer evaluating page.Page.File -- error when using page type docs google/docsy#1863).
  3. Mention the versions of the relevant artifacts being used: You are currently using versions of Hugo (0.124.1) and Docsy (v0.9.1); please check if a new release of Docsy has been made available, and update this information in the issue if necessary.

As this ticket meets the criterias, I will label it with 'triage'. I hope this helps! If you need further assistance, feel free to ask. Remember that I'm just a bot, an experiment of @mudler and @jimmykarily, and I'm not able to provide solutions to the issue itself.

Best regards,
Hugo Bot

@ci-robbot
Copy link
Collaborator

Hello, @mauromorales! It seems like you've encountered an issue when building your docs using Hugo version 0.124.1. The error message suggests a problem with the rendering of "section" and references an error in the template file docs/list.html. It looks like this issue has already been resolved in newer versions of Hugo, as stated in your description. To help the maintainers of the "kairos" project understand and address your concern, please provide more information on the following:

  1. Exact error message you're getting when running hugo serve with the newer version (if you've tested it).
  2. Any relevant changes you've made to the content, layouts, or config files that might be causing the error.

If you are unable to provide the above information, please mention that in your reply, and I will update the label on this issue accordingly. Remember that I am a bot, an experiment of @mudler and @jimmykarily, and my purpose is to assist with issue auditing and labeling. Thank you!

1 similar comment
@ci-robbot
Copy link
Collaborator

Hello, @mauromorales! It seems like you've encountered an issue when building your docs using Hugo version 0.124.1. The error message suggests a problem with the rendering of "section" and references an error in the template file docs/list.html. It looks like this issue has already been resolved in newer versions of Hugo, as stated in your description. To help the maintainers of the "kairos" project understand and address your concern, please provide more information on the following:

  1. Exact error message you're getting when running hugo serve with the newer version (if you've tested it).
  2. Any relevant changes you've made to the content, layouts, or config files that might be causing the error.

If you are unable to provide the above information, please mention that in your reply, and I will update the label on this issue accordingly. Remember that I am a bot, an experiment of @mudler and @jimmykarily, and my purpose is to assist with issue auditing and labeling. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call
Projects
Status: No status
Development

No branches or pull requests

2 participants