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

Don't load templates and similar when doing hugo mod graph and similar #8942

Closed
bep opened this issue Aug 31, 2021 · 0 comments
Closed

Don't load templates and similar when doing hugo mod graph and similar #8942

bep opened this issue Aug 31, 2021 · 0 comments
Assignees

Comments

@bep
Copy link
Member

@bep bep commented Aug 31, 2021

Which then would fail if there is a template error in the upstream library:

➜  hugo-alpine-test git:(master) ✗ hugo mod graph
hugo: downloading modules …
hugo: collected modules in 3273 ms
Error: add site dependencies: load resources: loading templates: "/Users/bep/dev/hugo_cache/modules/filecache/modules/pkg/mod/github.com/gohugoio/hugo-mod-jslibs/alpinejs/v3@v3.0.0-20210831141009-5f47ae9873c3/layouts/partials/jslibs/alpinejs/v3/script-src.html:4:1": parse failed: template: partials/jslibs/alpinejs/v3/script-src.html:4: undefined variable "$isProd"
@bep bep self-assigned this Aug 31, 2021
bep added a commit to bep/hugo that referenced this issue Aug 31, 2021
@bep bep closed this in #8943 Aug 31, 2021
bep added a commit that referenced this issue Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant