From c7e49d538e15653b30fd3f196859dac959c40476 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Thu, 7 Mar 2019 16:12:32 +0530 Subject: [PATCH] Fix test failure for script-extra-dep 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 --- test/integration/tests/script-extra-dep/files/script.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/tests/script-extra-dep/files/script.hs b/test/integration/tests/script-extra-dep/files/script.hs index 5652f3a433..99dd964a0d 100644 --- a/test/integration/tests/script-extra-dep/files/script.hs +++ b/test/integration/tests/script-extra-dep/files/script.hs @@ -1,5 +1,5 @@ #!/usr/bin/env stack --- stack --resolver ghc-8.2.2 script --extra-dep acme-missiles-0.3@rev:0 +-- stack --resolver ghc-8.2.2 script --extra-dep acme-missiles-0.3@rev:0 --extra-dep stm-2.5.0.0@rev:0 import Acme.Missiles main :: IO ()