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

verify cached image has > 0 bytes before use #1

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

AdamMerrifield
Copy link

If a build is cancelled while generating images, it is possible for 0 byte files to exist in the cache directory.
This PR will check file size is > 0 before trying to use a cached image.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@pzerelles pzerelles merged commit aa52dae into pzerelles:cache Mar 28, 2024
@AdamMerrifield AdamMerrifield deleted the zero-file-size-fix branch March 28, 2024 18:17
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.

None yet

2 participants