Skip to content

cabal ignores the 'cabal-version' field when solving for setup dependencies #3751

Open
@grayjay

Description

@grayjay

This can cause the build to fail when the setup-depends range for Cabal is less restrictive than the cabal-version for a given package. See #3723 (comment).

The current behavior is technically correct, because it is possible for a setup script to depend on one version of Cabal and implement the command interface from a different version. I think it would be better to prevent build failures in the more common case, though.

One solution is to update the setup-depends constraint on Cabal to reflect cabal-version before dependency solving.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions