Skip to content

Conversation

willmurphyscode
Copy link
Contributor

@willmurphyscode willmurphyscode commented Aug 22, 2024

Otherwise, either the query for the ID will close because the database is closed already, or the checksum will be wrong because closing the database compacts it, which changes its checksum.

See anchore/grype#2076

Otherwise, either the query for the ID will close because the database
is closed already, or the checksum will be wrong because closing the
database compacts it, which changes its checksum.

Signed-off-by: Will Murphy <[email protected]>
This is the test that would have prevented the earlier incorrect
metadata change.

Signed-off-by: Will Murphy <[email protected]>
@wagoodman wagoodman enabled auto-merge (squash) August 22, 2024 14:40
@wagoodman wagoodman merged commit 3b4b4e2 into main Aug 22, 2024
@wagoodman wagoodman deleted the fix-id-checkum-close branch August 22, 2024 15:10
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.

2 participants