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

Tinkerbell.org Hugo doesn't build locally #90

Closed
thomcrowe opened this issue Jun 29, 2020 · 2 comments
Closed

Tinkerbell.org Hugo doesn't build locally #90

thomcrowe opened this issue Jun 29, 2020 · 2 comments
Assignees
Labels
size/M estimate of the amount of work to address the issue
Projects

Comments

@thomcrowe
Copy link
Contributor

We have not been able to build the Tinkerbell Hugo site locally. We need to be able to build locally to test and iterate, especially on docs. There are errors are listed below:

Building sites … WARN 2020/06/29 15:03:12 Page.URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url
ERROR 2020/06/29 15:03:12 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:28:7: executing "partials/header.html" at <partial "menu.html" .>: error calling partial: "/Users/thomcrowe/documents/packet/tinkerbell.org/layouts/partials/menu.html:99:23": execute of template failed: template: partials/menu.html:99:23: executing "section-tree-nav" at <(not .Params.hidden) or $.showhidden>: can't give argument to non-function not .Params.hidden
ERROR 2020/06/29 15:03:12 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:28:7: executing "partials/header.html" at <partial "menu.html" .>: error calling partial: "/Users/thomcrowe/documents/packet/tinkerbell.org/layouts/partials/menu.html:99:23": execute of template failed: template: partials/menu.html:99:23: executing "section-tree-nav" at <(not .Params.hidden) or $.showhidden>: can't give argument to non-function not .Params.hidden
ERROR 2020/06/29 15:03:12 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:28:7: executing "partials/header.html" at <partial "menu.html" .>: error calling partial: "/Users/thomcrowe/documents/packet/tinkerbell.org/layouts/partials/menu.html:99:23": execute of template failed: template: partials/menu.html:99:23: executing "section-tree-nav" at <(not .Params.hidden) or $.showhidden>: can't give argument to non-function not .Params.hidden
ERROR 2020/06/29 15:03:12 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:28:7: executing "partials/header.html" at <partial "menu.html" .>: error calling partial: "/Users/thomcrowe/documents/packet/tinkerbell.org/layouts/partials/menu.html:99:23": execute of template failed: template: partials/menu.html:99:23: executing "section-tree-nav" at <(not .Params.hidden) or $.showhidden>: can't give argument to non-function not .Params.hidden
Built in 71 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:28:7: executing "partials/header.html" at <partial "menu.html" .>: error calling partial: "/Users/thomcrowe/documents/packet/tinkerbell.org/layouts/partials/menu.html:99:23": execute of template failed: template: partials/menu.html:99:23: executing "section-tree-nav" at <(not .Params.hidden) or $.showhidden>: can't give argument to non-function not .Params.hidden

@mrmrcoleman mrmrcoleman added this to In Progress in Issues List Jul 6, 2020
@mrmrcoleman mrmrcoleman moved this from In Progress to Requests in Issues List Jul 6, 2020
@thomcrowe
Copy link
Contributor Author

@ronggur Do you have any insight on what needs to be done to make this work locally?

@DailyAlice DailyAlice added the size/M estimate of the amount of work to address the issue label Jul 21, 2020
@gianarb
Copy link
Contributor

gianarb commented Sep 4, 2020

I made a few tests and it builds locally but you need a particular version of hugo:

Hugo Static Site Generator v0.69.0/extended darwin/amd64 BuildDate: unknown

We have to figure out why it does not work with the newest version of hugo. But in the meantime you can use nix-shell and everything will work again

@gianarb gianarb closed this as completed Sep 4, 2020
Issues List automation moved this from Requests to Just shipped Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M estimate of the amount of work to address the issue
Projects
No open projects
Issues List
  
Just shipped
Development

No branches or pull requests

4 participants