Skip to content

--reject-unconstrained-dependencies is satisfied by flag constraints #12190

Closed

Description

@philderbeast

--reject-unconstrained-dependencies is satisfied by flag constraints.

Originally posted by @sebright in #11468

Reproduction

In this repository, run cabal freeze, then in the freeze file delete or comment out any constraints for the rere package. Running cabal build all --dry-run --reject-unconstrained-dependencies=all will still succeed (when it shouldn't have) because the following flag is taken as a constraint that satisfies the --reject-unconstrained-dependencies=all check. For this check, what we really want to check for are version constraints, not flag constraints.

constraints: rere -rere-cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions