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

[FLORA-414] Store archive hashes #560

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

tchoutri
Copy link
Contributor

@tchoutri tchoutri commented Jun 17, 2024

Proposed changes

The astute reader will notice that an IORef is used. It is because when we read the tarball, we encounter the JSON file of a release before the cabal file. As such, the release is not yet present in the database, so we store it in memory until we encounter the cabal file. Then we collect the hash and delete it from the in-memory map.

Contributor checklist

@tchoutri tchoutri merged commit 13f9fb5 into development Jun 17, 2024
9 checks passed
@tchoutri tchoutri deleted the store-archive-hashes branch June 17, 2024 22:26
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