Skip to content

Implement preliminary support for new forward-compat scheme #4900

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

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

hvr
Copy link
Member

@hvr hvr commented Nov 20, 2017

This provides a provisional (i.e. hacky) retrofitted implementation of
the forward-compat scheme described in #4899 for the cabal-2.0 branch.

This hack works by constructing a dummy package description in case
the package description fails to be parsed via the standard parser,
and we detect a new-style cabal-spec declaration.

This provides a provisional (i.e. hacky) retrofitted implementation of
the forward-compat scheme described in haskell#4899 for the cabal-2.0 branch.

This hack works by constructing a dummy package description in case
the package description fails to be parsed via the standard parser,
and we detect a new-style cabal-spec declaration.
@hvr hvr added this to the 2.0.1 milestone Nov 20, 2017
@23Skidoo
Copy link
Member

23Skidoo commented Nov 22, 2017

@hvr Should I wait for you to finish the write-up in #4899 before merging?

hvr added a commit to hvr/cabal that referenced this pull request Nov 24, 2017
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 complements haskell#4900 for the 2.0 branch.
@23Skidoo 23Skidoo merged commit 66ce221 into haskell:2.0 Nov 24, 2017
@23Skidoo
Copy link
Member

Merged, thanks!

@hvr hvr deleted the pr/new-style-spec-2.0 branch November 24, 2017 15:51
hvr added a commit to hvr/cabal that referenced this pull request Nov 24, 2017
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 complements haskell#4900 for the 2.0 branch.
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 this pull request may close these issues.

2 participants