Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Test suite failure: Your dummy space has been corrupted. Size is: "" #1
Thanks for the report! This is a mystery to me - I can't reproduce the problem locally. I'm using an identical set of dependencies.
Here's where the dummy string is generated: https://github.com/fpco/executable-hash/blob/master/System/Executable/Hash/Internal.hs#L20
And here's where the exception is coming from: https://github.com/snoyberg/file-embed/blob/master/Data/FileEmbed.hs#L238
Perhaps it's something nix related? I know that nix tries very hard to make builds deterministic, but I can't see that breaking this..
Ah, that is helpful, thanks! Your binaries are tiny compared to mine, likely because they are dynamically linked. Since the dummy string is in the library, it isn't found within the executable's binary.
The API should probably be changed to make this a nonissue. This would involve the following changes:
The alternative would be to demand statically linked binaries, but since that's avoidable, this seems like a good thing to change.
I'm a little late with my response. I'm sorry about that. New versions of the package work fine in NIxOS: http://hydra.nixos.org/job/nixpkgs/haskell-updates/haskellngPackages.executable-hash.x86_64-linux.