Skip to content

Look for transitive setup dependency on Cabal when choosing Cabal spec version. (2.2) #5193

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 2 commits into from
Mar 9, 2018

Conversation

grayjay
Copy link
Collaborator

@grayjay grayjay commented Mar 8, 2018

#5170 cherry-picked onto 2.2.

@23Skidoo Do you think we should apply this to 2.2? It only affects new-build.

Please include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

Please also shortly describe how you tested your change. Bonus points for added tests!

grayjay added 2 commits March 7, 2018 19:33
…c version.

Fixes haskell#4288.

Previously, new-build only looked for a direct dependency on Cabal when choosing
the spec version to use for running the setup script.  When the setup script
only had a transitive dependency on Cabal, cabal used the package's
cabal-version field, which could easily differ from the actual Cabal
dependency's version.  Then cabal could pass flags to the setup script that
weren't recognized by the Cabal dependency.

This commit considers any setup dependency on Cabal when choosing the Cabal spec
version.

(cherry picked from commit ea01b9d)
@hvr
Copy link
Member

hvr commented Mar 8, 2018

I'm generally for including this in 2.2 since it fixes an issue, i.e. #4288

@23Skidoo
Copy link
Member

23Skidoo commented Mar 8, 2018

Sure, why not.

@grayjay
Copy link
Collaborator Author

grayjay commented Mar 9, 2018

Thanks, I'll merge it.

@grayjay grayjay merged commit 8c36c8b into haskell:2.2 Mar 9, 2018
@grayjay grayjay deleted the issue-4288-2.2 branch March 9, 2018 07:23
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.

3 participants