-
Notifications
You must be signed in to change notification settings - Fork 696
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
cabal sdist should touch preprocessed .hs files #2940
Comments
I'm not familiar with how cabal-install does the actual creation of the tarball, but wouldn't it be better to force the proper timestamp during the actual tarring? |
Note also that cabal unpack does not preserve timestamps. |
That's odd... I notice We may have multiple issues here: Cabal needs some way to know which (minimum) Moreover, Cabal should only generate parsers when In order to support auto-installation of the requested version of |
"Fixed" by #6666 |
cabal sdist
foralex
is supposed to produce a tarball that builds without requiring Happy, but sometimes it doesn't. The failure is non-deterministic and happens about half the time.Cabal bundles the Happy-generated
.hs
files into the source dist, but the problem appears to be that sometimes the timestamp on these files is slightly older than the.y
file, so it is ignored when subsequently building the tarball.For example, here is a correct run:
And an incorrect one:
Here the timestamp on
Parser.hs
is one second older thanParser.y
. If I try to build this tarball without Happy installed, I get this:The fix would appear to be to touch the preprocessed files before packaging the tarball.
The text was updated successfully, but these errors were encountered: