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

Require atdgen-runtime >= 2.12.0 to avoid int64 representation bug #18

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

mjambon
Copy link
Contributor

@mjambon mjambon commented Feb 27, 2024

Older versions of atdgen-runtime incorrectly represent int <ocaml repr="int64"> as JSON strings instead of JSON numbers. I described the bug at ahrefs/atd#402 before realizing it was already fixed.

I ran into this bug while having an old version of atdgen-runtime (2.11.0) on my machine despite running the latest atdgen (2.15.0).

Update: I submitted the same fix to opam-repository ocaml/opam-repository#25357

Copy link
Owner

@gborough gborough left a comment

Choose a reason for hiding this comment

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

@mjambon Thank you Martin for pointing this out! I thought I might have encountered this issue earlier while writing test cases but didn't follow up, now it makes sense.

I will cover this test case just in case and cut a new release.

Approved

@gborough gborough merged commit 1a18579 into gborough:main Feb 27, 2024
1 check 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