Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sol opened this issue Oct 26, 2013 · 4 comments · Fixed by #1565
Closed

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

sol opened this issue Oct 26, 2013 · 4 comments · Fixed by #1565
Assignees

Comments

@sol
Copy link
Member

sol commented Oct 26, 2013

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.

@ghost ghost assigned 23Skidoo Oct 26, 2013
@23Skidoo
Copy link
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.

@23Skidoo
Copy link
Member

Looks like this issue is a duplicate of #1150.

@23Skidoo
Copy link
Member

See #1565.

@sol
Copy link
Member Author

sol commented Oct 27, 2013

Works with your code. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants