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

Drop dependency on deriving-aeson; update to Aeson 2 #115

Merged
merged 4 commits into from Jan 25, 2022
Merged

Conversation

ErinvanderVeen
Copy link
Member

@ErinvanderVeen ErinvanderVeen commented Jan 24, 2022

Dropping the deriving-aeson dependency keeps compilation times low enough, while still allowing the upgrade to Aeson 2.

Some changes were made to ensure compatibility with Aeson 1.x and 2.x.

Dropping the dependency was due to: fumieval/deriving-aeson#16

Compilation times:

  • Master: 2m5.204s
  • Aeson 2.0: 6m31.963s
  • Aeson 2.0 without deriving-aeson: 2m2.934s

@ErinvanderVeen ErinvanderVeen marked this pull request as ready for review January 24, 2022 12:18
Copy link
Member

@infinisil infinisil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the below comments, let's make it a habit to add to the changelog.md

default.nix Show resolved Hide resolved
src/Crypto/WebAuthn/Metadata/FidoRegistry.hs Show resolved Hide resolved
src/Crypto/WebAuthn/Metadata/Service/Decode.hs Outdated Show resolved Hide resolved
@infinisil
Copy link
Member

Weird that CI doesn't run. We should definitely make that work since this PR requires compilation of a number of dependencies (with CI we'll have those in the cachix cache).

@infinisil
Copy link
Member

A workaround to fix CI is to follow this guide to allow running a workflow manually for a branch.

To avoid a name clash, the aeson1 version is named `webauthn_aeson1`.
@infinisil infinisil merged commit 084a264 into master Jan 25, 2022
@infinisil infinisil deleted the aeson-2 branch January 25, 2022 13:15
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.

None yet

2 participants