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

Add allow_newer flag to stack_snapshot #1477

Open
facundominguez opened this issue Jan 28, 2021 · 1 comment
Open

Add allow_newer flag to stack_snapshot #1477

facundominguez opened this issue Jan 28, 2021 · 1 comment
Labels
P3 minor: not priorized type: feature request

Comments

@facundominguez
Copy link
Member

When testing an unreleased version of GHC with a haskell project, usually the haskell dependencies have upper bounds that prevent the newer bootstrap libraries from being used.

With stack and cabal one can use a flag allow-newer to try building the packages even when their bounds ask for older libraries.

In the current state of rules_haskell, one has to patch all the packages in the dependency tree that need bounds relaxed.

A more convenient solution would be to add an attribute "allow_newer" to stack_snapshot that directs both stack and cabal to switch on their respective allow-newer flags.

@facundominguez
Copy link
Member Author

Turns out that --allow-newer is supported by cabal-install, but not by Setup.hs/Cabal haskell/cabal#3581

Apparently Setup.hs can be told to ignore the bounds, but then one has to be more explicit about deps and flag settings on the command line. It wouldn't be as simple as passing a flag.

facundominguez added a commit that referenced this issue Jan 29, 2021
It doesn't work because --allow-newer is not implemented in
Setup.hs configure
@Xophmeister Xophmeister added the P3 minor: not priorized label Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 minor: not priorized type: feature request
Projects
None yet
Development

No branches or pull requests

2 participants