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

Error when building without pushing the templates folder #2357

Closed
T3kla opened this issue Nov 13, 2023 · 5 comments
Closed

Error when building without pushing the templates folder #2357

T3kla opened this issue Nov 13, 2023 · 5 comments
Labels
done in pr Already done in a PR

Comments

@T3kla
Copy link

T3kla commented Nov 13, 2023

Bug Report

Environment

Zola version: 0.17.2

Expected Behavior

When using zola build the site should build.

Current Behavior

It won't build the site.

Building site...
Error: Failed to build the site
Error: Error parsing templates from the /templates directory
Error: Reason: Io error while writing rendered value to output: NotFound
Error: Reason: The system cannot find the file specified. (os error 2)

(I have no idea how to add RUST_BACKTRACE=1 when running a zola command btw.)

Step to reproduce

  • Create a new zola project
  • Follow the GitHub Pages guide
  • Don't have anything in the templates folder, so it never gets pushed to the repo
  • Have the GitHub action fail

References

This issue in the Tera repo explains the issue.
Keats/tera#819 (comment)

@Keats
Copy link
Collaborator

Keats commented Nov 13, 2023

I believe it's already fixed in the next branch but i'll double check

@Keats
Copy link
Collaborator

Keats commented Nov 20, 2023

Yep that seems to be fixed already

@Keats Keats added the done in pr Already done in a PR label Nov 20, 2023
@okin
Copy link

okin commented Nov 23, 2023

I've been seeing the same in CI builds.

Is there an ETA for a new release with that fix?

@Keats
Copy link
Collaborator

Keats commented Nov 23, 2023

Soonish I think? I'd like to get some more PRs/bugs merged

@camilasan
Copy link

I have the same problem but on Gitlab.

(3/3) Installing zola (0.17.2-r3)
Executing busybox-1.36.1-r5.trigger
OK: 22 MiB in 18 packages
$ zola build
Building site...
Error: Failed to build the site
Error: Error parsing templates from the /templates directory
Error: Reason: Io error while writing rendered value to output: NotFound
Error: Reason: No such file or directory (os error 2)

@Keats Keats closed this as completed Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done in pr Already done in a PR
Projects
None yet
Development

No branches or pull requests

4 participants