-
Notifications
You must be signed in to change notification settings - Fork 31
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
Allow bytestring-0.11 in test #88
Allow bytestring-0.11 in test #88
Conversation
This change enables running proto3-wire test with ghc-9.2.
The test compile, but it somehow still fails with:
|
The bit about deprecation is probably not relevant. How are you setting up your build environment with the new version of bytestring, and presumably GHC 9.2.x? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests pass in CI 👍
I am guessing that I will have to update the low-level hackery to cope with the change, once I can get a build environment. |
@j6carey oh well, trying to create a reproducer I see the tests are now passing, and the warning was a red herring :) |
For what its worth, here is a nix-shell that show this patch working with ghc-9.2.4: let
nixpkgs = import (builtins.fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/00d73d5385b63e868bd11282fb775f6fe4921fb5.tar.gz";
});
pkgs = nixpkgs { };
hspkgs = pkgs.haskell.packages.ghc924.extend (hpFinal: hpPrev: {
data-diverse = pkgs.haskell.lib.dontCheck
(pkgs.haskell.lib.overrideCabal hpPrev.data-diverse { broken = false; });
proto3-wire = hpPrev.proto3-wire.overrideAttrs (_: {
patches = [
(pkgs.fetchpatch {
url =
"https://github.com/TristanCacqueray/proto3-wire/commit/14eff5d9b76e0f30b0735087e8a08edba610ea7a.patch";
sha256 = "sha256-JwGGkrA9796btdsClaMjotBXPORCEkN+oB7Pr9GIMLc=";
})
];
});
});
in hspkgs.ghcWithPackages (p: [ p.proto3-wire ]) |
Oh yeah duh, I'm sorry 🙃 You're totally right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, well, that's good new that your tests are passing, @TristanCacqueray . Maybe the pattern synonym for Data.ByteString.Internal.PS
is saving us. If you are getting tests to pass, then this change is probably good enough.
@TristanCacqueray , which branch of nixpkgs has 00d73d5385b63e868bd11282fb775f6fe4921fb5 ? (I ask because I'm getting an error when I try to build data-diverse in the latest master-branch nixpkgs.) Answering my own question: haskell-updates. |
@j6carey in NixOS/nixpkgs@00d73d5 you can see it is coming from a recent PR made to the |
@TristanCacqueray , I tried reproducing your results in a slightly different way: by making these changes to proto3-wire:
The result is this compilation error in a dependency:
I'm still trying to figure out why... |
Looks like this is why: louispan/data-diverse@c721390 |
I'm still having trouble getting the appropriate build environment; however, I see no advantage to restricting the version range in tests more than it is restricted in the library itself, so I think it is best to go ahead with the merge and unblock the general effort to support GHC 9.2 in nixpkgs. |
Thank you for the prompt feedback! |
@TristanCacqueray , you are welcome! |
This change enables running proto3-wire test with ghc-9.2.