Restrict ppx_deriving_yojson dependency to yojson < 1.6#13356
Conversation
Yojson 1.6 deprecates the type `json` in favor of the new type `t`. This shouldn't be an issue but users of ppx_deriving_yojson and dune are gonna have a hard time working with yojson 1.6 since warning 3 is fatal in the default dune profile and they can't change ppx_deriving_yojson output.
|
Looks like the usual revdeps failures, let me know if I missed one that I actually broke! |
☀️ All lint checks passed 4208249
☀️ Installability check (10326 → 10326) |
|
Pushed some changes to hopefully make the linter happy and fix the broken builds for the older versions of |
fdbd0fe to
c126765
Compare
|
Ouh my bad, missed the camelus notification on Friday! |
|
Hmm now there's an issue with ppx_import, I'll look into it! |
|
Looks like the only remaining issue is with The rest:
|
|
Everything seems fine except on 4.02.3: I'm not sure how this change introduces a failure as it seems that it was working in 3ae7241: http://check.ocamllabs.io/4.02.3/good/ppx_deriving_yojson.1.0 |
|
ah, got it.. this package tests during normal compilation |
|
Ouh sorry, got carried away, will have a look at it, thanks for the help! |
|
I added a missing test dependency in the 1.1 package but that won't solve the issue. At this point I don't see what I could do beside removing the test build since the tests appear to be broken. |
|
I tried running I'll disable the test builds for the broken versions. |
|
There's still an issue with 3.x which tests won't build on 4.02 for some reason but will for later versions of ocaml. Not sure what the best solution is here, maybe add an Considering that the package was already broken before this PR it might be worth considering merging it. I'm happy to fix those old versions but not at the expense of the important part (ie the upper bound on |
|
If it does not compile, why not adding |
|
It does compile, the tests don't ie |
|
it looks like this works. I'll let the CI complete but it seems good |
|
I'd expect the 4.02.3 build to still fail, just on a later version, 2.x ones have being fixed indeed. If I'm wrong and it actually goes through then that's even better ! |
well no, the build is already finished and everything is fine on 4.02.3 ^^ |
|
all green. Thanks a lot |
Yojson 1.6 deprecates the type
jsonin favor of the new typet.This shouldn't be an issue but users of ppx_deriving_yojson and
dune are gonna have a hard time working with yojson 1.6 since warning 3
is fatal in the default dune profile and they can't change
ppx_deriving_yojson output.