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

No upper bound on Cabal in setup-depends #39

Closed
23Skidoo opened this issue Oct 14, 2017 · 7 comments
Closed

No upper bound on Cabal in setup-depends #39

23Skidoo opened this issue Oct 14, 2017 · 7 comments
Assignees

Comments

@23Skidoo
Copy link

The Cabal constraint in distributive's setup-depends is too permissive, which causes build failures like the one reported in haskell/cabal#4137. For 0.5.3 the upper bound should be Cabal < 2.2, since you can't guarantee that the setup script will work with the next Cabal release.

@RyanGlScott
Copy link
Collaborator

I'm lost here. The setup script in use in distributive is just a thin wrapper around cabal-doctest, and moreover, doesn't directly import anything from Cabal-the-library itself. In fact, the only reason that there's even a Cabal dependency in this custom-setup in the first place is to work around a Cabal bug.

@RyanGlScott
Copy link
Collaborator

Moreover, after reading haskell/cabal#4137, the build error described there isn't even for the most recent version of distributive!

@phadej
Copy link
Collaborator

phadej commented Oct 15, 2017

I'll check this tomorrow

@phadej phadej self-assigned this Oct 15, 2017
@23Skidoo
Copy link
Author

It looks like the setup script is fixed in 0.5.3+. It would be nice if you could update the .cabal files for pre-0.5.3 versions of distributive on Hackage.

@RyanGlScott
Copy link
Collaborator

OK... what exactly was the fix, then? The only two versions of distributive on Hackage that use a custom-setup are versions 0.5.2 and 0.5.3, so would it suffice to restrict the upper version bounds on Cabal in distributive-0.5.2's custom-setup stanza to be < 2.2?

@23Skidoo
Copy link
Author

23Skidoo commented Oct 15, 2017

Looks like it, provided that 0.5.2's custom setup is buildable with Cabal 2.0.

@RyanGlScott
Copy link
Collaborator

OK, I've made a revision on Hackage.

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

No branches or pull requests

3 participants