GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
(Imported from Trac #817, reported by @jeffwheeler on 2011-03-22)
An if/else block which sets the main-is value for an executable based on a flag is misparsed when running "cabal sdist" (it's parsed correctly when running "cabal install").
Upon failure, it appears that it's looking for a filename that is the two main-is options concatenated together. E.g., I get the error "cabal: HackerMain?.hsMain.hs doesn't exist".
The problematic bit looks like:
My entire config can be found on hpaste: http://hpaste.org/44939/yicabal (problematic lines around 268).
(Imported comment by @dcoutts on 2011-03-22)
Another example http://hpaste.org/48025
Two problems: one is the way sdist uses flatten, and the other is that monoid instance for main-is concatenates rather than picks the last. sdist should not use flatten, it needs to get the collection of values.
Sounds... obsolete. Suggest close...?
Will most likely be subsumed by #2865 which seems like it's going to be getting in sometime soonish. Closing.
I'd rather keep this open, and check if it really solved. We can (should?) write tests for this kind of regressions before closing.
Ok, fair enough. I really mostly just wanted to (indirectly) call your attention to this.