parser: Clearly state that invalid fields are ignored
Previously we would issue a warning of the following form when we encountered a field that isn't supported by the cabal-version declared in the cabal file: Warning: ghc-heap.cabal:30:3: The field "cmm-sources" is available only since the Cabal specification version 3.0. The message, however, doesn't tell the user the consequence of this warning. Consequently a user could easily be confused when the build subsequently fail. Avoid this possibility by clearly stating that the field value will be ignored.
Showing
- Cabal/Distribution/FieldGrammar/Parsec.hs 1 addition, 1 deletionCabal/Distribution/FieldGrammar/Parsec.hs
- Cabal/tests/ParserTests/regressions/multiple-libs-2.check 1 addition, 1 deletionCabal/tests/ParserTests/regressions/multiple-libs-2.check
- Cabal/tests/ParserTests/regressions/multiple-libs-2.format 1 addition, 1 deletionCabal/tests/ParserTests/regressions/multiple-libs-2.format
- Cabal/tests/ParserTests/regressions/wl-pprint-indef.format 3 additions, 3 deletionsCabal/tests/ParserTests/regressions/wl-pprint-indef.format
Loading
Please register or sign in to comment