-
Notifications
You must be signed in to change notification settings - Fork 841
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
No way to disable hpack running #1813
Comments
I don't know how to fix the issue. Maybe we should add file-edition-time checks after all? |
I think it regenerates even if the cabal file has a newer timestamp than the hpack file, which is perhaps unintuitive and was inconvenient for #1814. |
Perhaps this is one reason to use hpack as an external binary, as discussed in #1800 . If we do really care about the process invocation overhead, we could do the following:
As for having manual edits to your cabal file, my response would be "don't do that". I suppose you could have some hpack or stack.yaml configuration that suppresses generation of your cabal file. |
Having a |
I agree that a Regarding manual editing cabal files, I understand that this is due to missing features in |
I can work on I'm not sure how to do that, is adding Why |
No worries! I'd probably put it in |
Fix #1813: Check package.yaml and cabal file modification times
If I have used non-upstream version of hpack, now I'm forced to also use non-upstream version of stack - as I cannot disable regeneration of
cabal
files.This now breaks many of our CI builds as they pull the latest stack binary in. Some of cabal files are generated with patched
hpack
or manually edited afterwards.The text was updated successfully, but these errors were encountered: