Skip to content

cabal check complains about -Werror in cabal.project #8490

@nomeata

Description

@nomeata

Describe the bug

cabal check complains about -Werror even if it is set in the cabal.project file

Expected behavior

Given that -Werror is only bad if it is part of the .cabal file uploaded to Hackage, setting it in the cabal.project file should not trigger the bug.

System information

This is cabal-3.6.2.0 from ghcup via haskell-ci.

Additional context

In my case the cabal.project is created by haskell-ci when using

haskell-ci regenerate  --local-ghc-options -Werror

which I tought might be a good way to get -Werror active on CI without affecting the Hackage releases.

(This is a minor thing of course, but still worth noting down.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions