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

On Demand Hashing #11

Merged
merged 3 commits into from
May 13, 2024
Merged

On Demand Hashing #11

merged 3 commits into from
May 13, 2024

Conversation

jmesserli
Copy link
Owner

The cached writer used hash files to store the hashes of the generated files until now. While this may be a bit better for I/O since it only needs to read the hash files, and not all of the generated files, this is probably irrelevant for our use case.

After changing it, I realized why that has been the case so far: it didn't work anymore ;)
I took a bit more time to debug it this time and figured out that the hashes were generated before the tabwriter could work its magic. Therefore the freshly generated files had \ts in there, and the files read from this had the tabs converted to spaces.

I fixed it by generating the files through the tabwriter into a buffer and then comparing that buffer to the existing files.

Also there was a bug where the config was not passed by reference which broke the updated files report.

@jmesserli jmesserli self-assigned this May 13, 2024
@jmesserli jmesserli merged commit 6e86cab into master May 13, 2024
1 check passed
@jmesserli jmesserli deleted the feature/on-demand-hashing branch May 13, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant