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

Let ghasum update fail if the gha.sum file is corrupt #22

Merged
merged 2 commits into from
Mar 2, 2024

Conversation

ericcornelissen
Copy link
Collaborator

Closes #7

Summary

Update the internals for parsing the version from a gha.sum files in order to make ghasum update fail if the file is corrupted. This change is enforced going forward through the added test case.

TODO: Add option to ghasum update to force update gha.sum when it's corrupt.

Update the internals for parsing the version from a  gha.sum files in
order to make `ghasum update` fail if the file is corrupted. This change
is enforced going forward through the added test case.
@ericcornelissen ericcornelissen added the enhancement New feature or request label Mar 2, 2024
Update the `ghasum update` CLI to accept a `-force` flag that can be
used to force updating to ignore and fix any errors in the gha.sum file.
@ericcornelissen ericcornelissen merged commit 1e89ccb into main Mar 2, 2024
11 checks passed
@ericcornelissen ericcornelissen deleted the 7-update-corrupt-sumfile branch March 2, 2024 16:57
@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
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ghasum update should error when working with a corrupt sumfile
1 participant