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

Use Map with custom FromJSON to ignore unknown keys in GHCupInfo #1144

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

dfordivam
Copy link
Collaborator

This is a very straightforward change to replace the usage of Map in GHCupInfo.

we only ever need the behavior of Map when doing validation of metadata in ghcup-metadata repo.

And we do need two set of instances for parsing JSON, so using a compile flag to select that looks like a fairly decent design choice while keeping code clear from parameterized data types.

…mpatibility

This is a Map with custom FromJSON instance that will allow an older ghcup to parse
metadata containing new Platform/Architecture types in Map keys
This is for use in ghcup-metadata validation code
@hasufell hasufell merged commit 93dfbce into master Nov 19, 2024
48 of 51 checks passed
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