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

Building website is not deterministic #957

Open
BD103 opened this issue Feb 15, 2024 · 0 comments
Open

Building website is not deterministic #957

BD103 opened this issue Feb 15, 2024 · 0 comments
Labels
A-Build-System C-Bug A problem with the code that runs the site

Comments

@BD103
Copy link
Member

BD103 commented Feb 15, 2024

Determinism is a property that allows you to reproduce the exact same website given the exact same files. This would be useful when comparing the effect of changes, since you could run:

$ zola build --output-dir public-old
$ git switch new-branch
$ zola build --output-dir public-new
$ diff --recursive public-old public-new

This currently does not work because random whitespace is inserted by Zola every build, without ever changing the files. To reproduce, run the above command but without switching to a different branch.

The main reason I wanted this is because it could help me review the changes made in #862.

@alice-i-cecile alice-i-cecile added C-Bug A problem with the code that runs the site A-Build-System labels Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System C-Bug A problem with the code that runs the site
Projects
None yet
Development

No branches or pull requests

2 participants