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

Have the solver reject packages with a too-new/unsupported spec-version #4909

Merged
merged 2 commits into from
Nov 27, 2017

Conversation

hvr
Copy link
Member

@hvr hvr commented Nov 25, 2017

This is a forward-port of #4907

hvr added 2 commits November 25, 2017 15:33
This compares the request spec-version to the lib:Cabal's version in order to
determine whether cabal is able to properly understand the package. If it's
newer than the currently linked lib:Cabal version it's turned into a global
`FailResult` which the solver treats as desired in terms of backtracking and
error reporting.

This is related to the new spec-version forward-compat scheme (see haskell#4899).

This is a forward-port of haskell#4907 to the `master` branch
Since we now reject unknown spec-versions in the solver, these test-cases
were broken; this replaces the 2 occurences by `cabal-version: 2.0` instead.

(cherry picked from commit 45c102d)
@23Skidoo 23Skidoo merged commit 1b1e908 into haskell:master Nov 27, 2017
@23Skidoo
Copy link
Member

Merged, thanks!

@hvr hvr deleted the pr/2.2/solver-spec-ver branch November 27, 2017 09:32
grayjay added a commit to grayjay/cabal that referenced this pull request Dec 3, 2017
haskell#4909 changed the cabal-version of the package under test, so this commit
adjusts the versions of the Cabal libraries in the test to be consistent with
the cabal-version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants