Fix test failure for script-extra-dep#4610
Merged
snoyberg merged 1 commit intocommercialhaskell:masterfrom Mar 7, 2019
Merged
Conversation
This PR fixes this failure:
``` shellsession
Running test script-extra-dep
Running: /home/sibi/.local/bin/stack script.hs
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for acme-missiles-0.3:
stm needed, but the stack configuration has no specified version (latest matching version is 2.5.0.0)
needed since acme-missiles is a build target.
Some different approaches to resolving this:
* Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working build configuration. This can be convenient when dealing with many
complicated constraint errors, but results may be unpredictable.
* Recommended action: try adding the following to your extra-deps in /home/sibi/.stack/script/048d6ed9f71bbafeb2cf702cda487d65dbd1010070852364425533166dcd99bc/config.yaml:
stm-2.5.0.0@sha256:1fb8bd117550d560d1b33a6404e27fdb090e70921e0f6434722cdbbce20d8256,2086
Plan construction failed.
Main.hs: Exited with exit code: ExitFailure 1
CallStack (from HasCallStack):
error, called at ../../../lib/StackTest.hs:52:34 in main:StackTest
stack, called at ../Main.hs:4:8 in main:Main
```
`stm` package is one of the dependency of acme-missiles, so that also
needs to be added as part of `extra-dep` for the test to run properly
Contributor
|
I guess the initial idea was not for GHC 8.2.2 as starting with version 8.4.1 |
Contributor
|
Alternative solution would be to use something depending only on |
qrilka
approved these changes
Mar 7, 2019
snoyberg
approved these changes
Mar 7, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes this failure:
stmpackage is one of the dependency of acme-missiles, so that alsoneeds to be added as part of
extra-depfor the test to run properlyNote: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!