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

Unlock gha.sum if an error occurs during updating #21

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

ericcornelissen
Copy link
Collaborator

Summary

Fix a bug where using ghasum update could result in a locked gha.sum file when an unexpected error occurred. While not fatal - it could be fixed by re-initializing or successfully updating - it is inconvenient and buggy. This fixes the problem by always unlocking the file in the deferred function that closes the file handle as well.

Fix a bug where using `ghasum update` could result in a locked gha.sum
file when an unexpected error occurred. While not fatal - it could be
fixed by re-initializing or successfully updating - it is inconvenient
and buggy. This fixes the problem by always unlocking the file in the
deferred function that closes the file handle as well.
@ericcornelissen ericcornelissen added the bug Something isn't working label Mar 2, 2024
@ericcornelissen ericcornelissen merged commit 4942ee1 into main Mar 2, 2024
11 checks passed
@ericcornelissen ericcornelissen deleted the fix-update-with-error branch March 2, 2024 16:58
@ericcornelissen ericcornelissen mentioned this pull request Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant