-
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
stack sdist fails when modules are exposed based on a flag in the cabal file #4112
Comments
Thanks for the report! I've managed to reproduce this on v1.6.3. Looking into it now! |
This doesn't appear to be an issue with stack; |
@isovector I had actually checked this before filing the bug, all my cabal builds are succeeding for the same cabal file, and all stack builds are failing. Is it possible that a particular version of cabal has this problem and that is being used by stack? |
See this build job set: https://travis-ci.org/composewell/streamly/builds/395854967 . stack builds have failed due to this problem while cabal builds have succeeded. The only cabal build that failed is due to a network/curl issue. |
@harendra-kumar interesting, thanks for reopening. It looks like your build is using |
Ah, it seems that cabal gives this warning but still creates the tarball and therefore the build succeeds. However, stack does not proceed at all. Maybe we can use the same behavior as cabal? |
I am not sure which one is the correct behavior so please take a call and I will be ok either way. |
After some discussion, it seems like the If you want the permissive error code of cabal, the Feel free to reopen if none of these options are satisfactory! Thanks! |
General summary/comments (optional)
The stack sdist command reports duplicate modules when the same module is used in an
if-else
clause in the cabal file.Steps to reproduce
The cabal file includes this stanza:
Expected
stack sdist
command should succeed as usual.Actual
See this run: https://travis-ci.org/composewell/streamly/jobs/395854970 for the full error output.
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: