-
Notifications
You must be signed in to change notification settings - Fork 722
Closed
Description
I'm following these suggestions from official documentation to use different main
files for different flags:
Real problem: I need to disable
doctest
tests for Windows because AppVeyor CI fails
But when I'm trying to use this approach for my test-suite I see parsing error when using cabal new-build
command.
Expected behavior
Build without problems
Observed behavior
$ cabal new-build
Warning:
.../cabal-flag-example/cabal-flag-example.cabal:11:1:
The 'main-is' field is required for the exitcode-stdio-1.0 test suite type.
cabal: Failed parsing
".../cabal-flag-example/./cabal-flag-example.cabal".
I've tried to create minimal reproducible example. You can see it here:
$ cabal --version
cabal-install version 2.1.0.0
compiled using version 2.1.0.0 of the Cabal library