Open doyougnu opened 4 years ago
Yes, this is a common error with hpack
.
In practice, just deleting the .cabal
or package.yaml
in preConfigure
fixes that stuff.
But I'm not happy yet with the UX, especially because I've made some effort in the past so that things like that don't happen: https://github.com/NixOS/cabal2nix/commit/5721bed2a598a018119413bfe868bd286735cb15 But that fix was for cabal2nix, while for you it happends during configure phase. I'm not quite sure what invokes hpack
here, Cabal itself?
Could you give me the full reproducer for it (I couldn't find the files you use to build the above error above), so I can check that?
Trying to statically build my personal project (here). All dependencies build or found in cachix/nixpkgs but the build fails with a
<mypkg>.cabal was modified manually, please use --force...
error:System Details
OS: NixOS 19.09.2331.64a3ccb852d (Loris)
resolver: lts-12.25
Using the default stack-project-builder script and default command to build
The Error
Note that I received the same error after deleting my cabal file, figuring Hpack would generate a new one.