commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

`--flag *:[-]<flag_name>` applies the flag to packages where it is not defined #6570

Closed mpilgrem closed 1 month ago

mpilgrem commented 1 month ago

Motivation: https://github.com/commercialhaskell/stack/issues/6565#issuecomment-2093564920

Currently, the Cabal flag (set or unset) is applied to all packages, even if the flag is not defined in the package's Cabal file.