Skip to content

Commit

Permalink
Bump LTS and nightly versions and fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
borsboom committed Jul 16, 2017
1 parent e4bff7e commit 97e9f60
Show file tree
Hide file tree
Showing 24 changed files with 73 additions and 68 deletions.
2 changes: 1 addition & 1 deletion etc/scripts/stack.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
resolver: lts-8.0
resolver: lts-8.22
4 changes: 4 additions & 0 deletions src/Stack/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,11 @@ hpack pkgDir = do
when exists $ do
let fpt = T.pack (toFilePath hpackFile)
$logDebug $ "Running hpack on " <> fpt
#if MIN_VERSION_hpack(0,18,0)
r <- liftIO $ Hpack.hpackResult (Just $ toFilePath pkgDir)
#else
r <- liftIO $ Hpack.hpackResult (toFilePath pkgDir)
#endif
forM_ (Hpack.resultWarnings r) $ \w -> $logWarn ("WARNING: " <> T.pack w)
let cabalFile = T.pack (Hpack.resultCabalFile r)
case Hpack.resultStatus r of
Expand Down
4 changes: 2 additions & 2 deletions src/Stack/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -906,10 +906,10 @@ downloadFromInfo programsDir downloadInfo tool = do
".tar.gz" -> return TarGz
".7z.exe" -> return SevenZ
_ -> throwString $ "Error: Unknown extension for url: " ++ url
relfile <- parseRelFile $ toolString tool ++ extension
relativeFile <- parseRelFile $ toolString tool ++ extension
path <- case url of
(parseUrlThrow -> Just _) -> do
let path = programsDir </> relfile
let path = programsDir </> relativeFile
ensureDir programsDir
chattyDownload (T.pack (toolString tool)) downloadInfo path
return path
Expand Down
4 changes: 1 addition & 3 deletions stack-7.10.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-6.30
resolver: lts-6.35
# docker:
# enable: true
# repo: fpco/stack-full
Expand All @@ -12,8 +12,6 @@ nix:
packages:
- zlib
flags:
stack:
hide-dependency-versions: true
mintty:
win32-2-5: false
extra-deps:
Expand Down
10 changes: 6 additions & 4 deletions stack-nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
resolver: nightly-2017-02-22
resolver: nightly-2017-07-15
image:
containers:
- base: "fpco/stack-base" # see ./etc/docker/stack-base/Dockerfile
name: "fpco/stack-test"
extra-deps:
- store-0.4.1
- store-core-0.4
nix:
# --nix on the command-line to enable.
enable: false
packages:
- zlib
- http-client-tls-0.3.4
flags:
mintty:
win32-2-5: false
extra-deps:
- mintty-0.1.1
72 changes: 36 additions & 36 deletions stack.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -204,44 +204,44 @@ library
, conduit >= 1.2.8
, conduit-extra >= 1.1.14
, containers >= 0.5.5.1
, cryptonite >= 0.19 && < 0.22
, cryptonite >= 0.19 && < 0.24
, cryptonite-conduit >= 0.1 && < 0.3
, directory >= 1.2.1.0 && < 1.4
, echo >= 0.1.3 && < 0.2
, either
, errors < 2.2
, errors < 2.3
, exceptions >= 0.8.0.2
, extra < 1.6
, extra >= 1.4.10 && < 1.6
, fast-logger >= 2.3.1
, filelock >= 0.1.0.1
, filepath >= 1.3.0.2
, fsnotify >= 0.2.1
, generic-deriving < 1.12
, ghc-prim
, generic-deriving >= 1.10.5 && < 1.12
, ghc-prim >= 0.4.0.0
, hackage-security
, hashable >= 1.2.3.2
, hpc
, hpc >= 0.6.0.2
, http-client >= 0.5.3.3
, http-client-tls >= 0.3.4
, http-conduit >= 2.2.3
, http-types >= 0.8.6 && < 0.10
, lifted-async
, lifted-async >= 0.9.1.1
-- https://github.com/basvandijk/lifted-base/issues/31
, lifted-base < 0.2.3.7 || > 0.2.3.7
, memory >= 0.13 && < 0.15
, microlens >= 0.3.0.0
, microlens-mtl
, microlens-mtl >= 0.1.10.0
, mintty >= 0.1.1
, monad-control
, monad-control >= 1.0.1.0
, monad-logger >= 0.3.13.1
, monad-unlift < 0.3
, mtl >= 2.1.3.1
, network-uri
, open-browser >= 0.2.1
, optparse-applicative >= 0.13 && < 0.14
, path >= 0.5.8 && <= 0.5.12
, path >= 0.5.8 && < 0.6
, path-io >= 1.1.0 && < 2.0.0
, persistent >= 2.1.2 && < 2.7
, persistent >= 2.1.2 && < 2.8
-- persistent-sqlite-2.5.0.1 has a bug
-- (see https://github.com/yesodweb/persistent/pull/561#issuecomment-222329087)
, persistent-sqlite (>= 2.1.4 && < 2.5.0.1) || (> 2.5.0.1 && < 2.7)
Expand All @@ -252,7 +252,7 @@ library
, resourcet >= 1.1.4.1
, retry >= 0.6 && < 0.8
, safe >= 0.3
, safe-exceptions
, safe-exceptions >= 0.1.5.0
, semigroups >= 0.5 && < 0.19
, split
, stm >= 2.4.4
Expand All @@ -262,13 +262,13 @@ library
, temporary >= 1.2.0.3
, text >= 1.2.0.4
, text-binary
, text-metrics >= 0.1 && < 0.3
, text-metrics >= 0.1 && < 0.4
, time >= 1.4.2 && < 1.7
, tls >= 1.3.8
, transformers >= 0.3.0.0 && < 0.6
, transformers-base >= 0.4.4
, unicode-transforms >= 0.1 && <0.4
, unix-compat
, unix-compat >= 0.4.1.4
, unordered-containers >= 0.2.5.1
, vector >= 0.10.12.3 && < 0.13
, vector-binary-instances
Expand All @@ -277,8 +277,8 @@ library
, deepseq >= 1.4
, hastache
, project-template >= 0.2
, zip-archive < 0.4
, hpack >= 0.17.0 && < 0.18
, zip-archive >= 0.2.3.7 && < 0.4
, hpack >= 0.17.0 && < 0.19
, store >= 0.4.1 && < 0.5
, store-core >= 0.4 && < 0.5
, annotated-wl-pprint
Expand All @@ -302,22 +302,22 @@ executable stack
build-depends: Cabal >= 1.18.1.5 && < 1.25
, base >=4.7 && < 5
, bytestring >= 0.10.4.0
, conduit
, conduit >= 1.2.8
, containers >= 0.5.5.1
, directory >= 1.2.1.0 && < 1.4
, either
, filelock >= 0.1.0.1
, filepath >= 1.3.0.2
, hpack >= 0.17.0 && < 0.18
, hpack >= 0.17.0 && < 0.19
, http-client >= 0.5.3.3
-- https://github.com/basvandijk/lifted-base/issues/31
, lifted-base < 0.2.3.7 || > 0.2.3.7
, microlens >= 0.3.0.0
, monad-control
, monad-control >= 1.0.1.0
, monad-logger >= 0.3.13.1
, mtl >= 2.1.3.1
, optparse-applicative >= 0.13 && < 0.14
, path >= 0.5.8
, path >= 0.5.8 && < 0.6
, path-io >= 1.1.0 && < 2.0.0
, split
, stack
Expand All @@ -329,7 +329,7 @@ executable stack
cpp-options: -DWINDOWS
if !flag(disable-git-info)
cpp-options: -DUSE_GIT_INFO
build-depends: gitrev >= 1.1 && < 1.3
build-depends: gitrev >= 1.1 && < 1.4
, optparse-simple >= 0.0.3
if flag(hide-dependency-versions)
cpp-options: -DHIDE_DEP_VERSIONS
Expand All @@ -356,40 +356,40 @@ test-suite stack-test
, Stack.Untar.UntarSpec
ghc-options: -threaded -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates
build-depends: Cabal >= 1.18.1.5 && < 1.25
, QuickCheck < 2.10
, QuickCheck >= 2.8.2 && < 2.10
, attoparsec < 0.14
, base >=4.7 && <5
, conduit
, conduit >= 1.2.8
, conduit-extra
, containers >= 0.5.5.1
, cryptonite >= 0.19 && < 0.22
, cryptonite >= 0.19 && < 0.24
, directory >= 1.2.1.0 && < 1.4
, exceptions
, filepath
, filepath >= 1.3.0.2
, hspec >= 2.2 && <2.5
, hashable
, http-client-tls
, http-conduit
, hashable >= 1.2.3.2
, http-client-tls >= 0.3.4
, http-conduit >= 2.2.3
, monad-logger
, neat-interpolation >= 0.3
, optparse-applicative >= 0.13 && < 0.14
, path >= 0.5.8
, path >= 0.5.8 && < 0.6
, path-io >= 1.1.0 && < 2.0.0
, resourcet
, retry >= 0.6 && < 0.8
, stack
, temporary
, temporary >= 1.2.0.3
, text
, transformers >= 0.3.0.0 && < 0.6
, mono-traversable >=0.10.2 && <1.1
, th-reify-many
, mono-traversable >= 0.10.2 && <1.1
, th-reify-many >= 0.1.6
, smallcheck
, bytestring
, bytestring >= 0.10.4.0
, store >= 0.4.1 && < 0.5
, vector >= 0.10.12.3 && < 0.13
, unordered-containers
, template-haskell >= 2.9.0.0 && < 2.12
, yaml
, yaml >= 0.8.20
default-language: Haskell2010
if os(windows)
cpp-options: -DWINDOWS
Expand All @@ -414,10 +414,10 @@ test-suite stack-integration-test
, hspec >= 2.2 && < 2.5
, process >= 1.2.0.0 && < 1.5
, resourcet
, temporary
, temporary >= 1.2.0.3
, text
, transformers >= 0.3.0.0 && < 0.6
, unix-compat
, unix-compat >= 0.4.1.4
default-language: Haskell2010

-- This isn't actually needed to build stack-integration-test, but it makes it
Expand Down
3 changes: 1 addition & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-8.5
resolver: lts-8.22
# docker:
# enable: true
# repo: fpco/stack-full
Expand All @@ -18,4 +18,3 @@ flags:
win32-2-5: false
extra-deps:
- mintty-0.1.1
- store-0.4.1
8 changes: 5 additions & 3 deletions test/integration/lib/StackTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ isARM = arch == "arm"

-- | 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@.
defaultResolverArg = "--resolver=lts-8.0"
-- a global context. The LTS major version here should match that of
-- the main @stack.yaml@ (and ordinarily be the `.0` minor version).
--
-- 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 = "--resolver=lts-8.22"
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resolver: lts-8.0
resolver: lts-8.22
drop-packages:
- zlib
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-8.0
resolver: lts-8.22
packages:
- '.'
extra-deps: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- https://hackage.haskell.org/package/half-0.2.2.3/half-0.2.2.3.tar.gz
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
2 changes: 1 addition & 1 deletion test/integration/tests/32-unlisted-module/files/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-8.0
resolver: lts-8.22
extra-deps:
- bytestring-0.10.6.0
packages:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
2 changes: 1 addition & 1 deletion test/integration/tests/366-non-root-dir/files/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
Original file line number Diff line number Diff line change
@@ -1 +1 @@
resolver: lts-8.0
resolver: lts-8.22
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolver: lts-8.0
resolver: lts-8.22
packages: []
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resolver: lts-8.0
resolver: lts-8.22
packages:
- auto-update-0.1.2.1
4 changes: 2 additions & 2 deletions test/integration/tests/haddock-options/files/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22
build:
haddock-arguments:
haddock-args:
- --optghc=-DFOO
- --optghc=-DFOO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-8.0
resolver: lts-8.22
extra-deps: []
flags: {}
extra-package-dbs: []
2 changes: 1 addition & 1 deletion test/integration/tests/multi-test/files/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ packages:
- sub-package
- cyclic
extra-deps: []
resolver: lts-8.0
resolver: lts-8.22

0 comments on commit 97e9f60

Please sign in to comment.