Skip to content

Commit

Permalink
Update default resolver for integration tests, and use in 444-package…
Browse files Browse the repository at this point in the history
…-option
  • Loading branch information
borsboom committed Jan 20, 2018
1 parent 04a788c commit c7e7919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions test/integration/lib/StackTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ isMacOSX = os == "darwin"
-- | To avoid problems with GHC version mismatch when a new LTS major
-- version is released, pass this argument to @stack@ when running in
-- a global context. The LTS major version here should match that of
-- the main @stack.yaml@ (and ordinarily be the `.0` minor version).
-- the main @stack.yaml@.
--
-- NOTE: currently using lts-8.22 instead of lts-8.0 because the `cyclic-test-deps` integration test is broken with lts-8.0 because a hackage metadata revision invalidated the snapshot (snapshot has `test-framework-quickcheck2-0.3.0.3` and `QuickCheck-2.9.2`, which used to be fine, but now test-framework-quickcheck2 was revised to have a `QuickCheck < 2.8` constraint).
defaultResolverArg :: String
defaultResolverArg = "--resolver=lts-8.22"
defaultResolverArg = "--resolver=lts-9.14"

-- | Remove a file and ignore any warnings about missing files.
removeFileIgnore :: FilePath -> IO ()
Expand Down
2 changes: 1 addition & 1 deletion test/integration/tests/444-package-option/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ main = do
isAlpine <- getIsAlpine
if isAlpine || isARM
then logInfo "Disabled on Alpine Linux and ARM since it cannot yet install its own GHC."
else stack ["--install-ghc", "runghc", "--package", "safe", "Test.hs"]
else stack [defaultResolverArg, "--install-ghc", "runghc", "--package", "safe", "Test.hs"]

0 comments on commit c7e7919

Please sign in to comment.