Skip to content

Take --constraint into account for configure/build/test #1564

Closed

Description

@sol

AFAICT, --constraint (and constraints given in ./cabal.config) are only taken into account for cabal install. For me It would be useful if they would also be taken into account during development.

Say if I have

constraints:foo==0.2.1

in cabal.config, but foo-0.2.2 is installed, I'd like cabal build to fail.

Activity

  1. 23Skidoo commented on Oct 27, 2013

    @23Skidoo
    Member

    This seems to be a bug in configure: cabal configure --constraint="foo==1.0.1" succeeds even if only foo-1.0.0 is installed.

    Related: #1485.

  2. 23Skidoo commented on Oct 27, 2013

    @23Skidoo
    Member

    Looks like this issue is a duplicate of #1150.

  3. 23Skidoo commented on Oct 27, 2013

    @23Skidoo
    Member

    See #1565.

  4. sol commented on Oct 27, 2013

    @sol
    MemberAuthor

    Works with your code. Thanks a lot!

  5. added a commit that references this issue on Oct 29, 2013
    16836ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions