You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If there is more than one flags: ... stanza in a cabal.project file, only one of them is taken into account.
To Reproduce
> cat foo.cabal
cabal-version: 3.0
name: foo
version: 0.1
license: BSD-3-Clause
build-type: Simple
flag bar
default: True
manual: True
flag baz
default: True
manual: True
Library
if flag(bar) || flag (baz)
buildable: false
> cat cabal.project
packages: .
package foo
flags: -bar
flags: -baz
-- flags: -bar -baz -- this works
> cabal build
Error: [Cabal-7127]
Cannot build the package foo-0.1 because none of the components are available to build: the library is marked as 'buildable: False'
If we set all the flags at once (i.e. uncomment the last line in cabal.project) then it works.
Expected behavior
I would expect flags to be merged. Or at least a warning that some flags stanza has been ignored.
System information
cabal: 3.12.1.0 and HEAD
The text was updated successfully, but these errors were encountered:
Describe the bug
If there is more than one
flags: ...
stanza in acabal.project
file, only one of them is taken into account.To Reproduce
If we set all the flags at once (i.e. uncomment the last line in
cabal.project
) then it works.Expected behavior
I would expect flags to be merged. Or at least a warning that some
flags
stanza has been ignored.System information
The text was updated successfully, but these errors were encountered: