Skip to content

Commit

Permalink
Use a custom snapshot
Browse files Browse the repository at this point in the history
This bumps us to newer versions of some libraries, in particular
conduit, which were previously blocked by #4125.
Using a custom snapshot should allow this by bypassing that bug.
  • Loading branch information
snoyberg committed Aug 13, 2018
1 parent 4b2f9af commit 9c592a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
17 changes: 17 additions & 0 deletions snapshot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resolver: lts-11.19
name: snapshot-for-building-stack-with-ghc-8.2.2

packages:
- Cabal-2.2.0.1@rev:0
- cabal-install-2.2.0.0@rev:1
- resolv-0.1.1.1@rev:0
- infer-license-0.2.0@rev:0
- hpack-0.29.6@rev:0
- http-api-data-0.3.8.1@rev:0
- githash-0.1.0.1@rev:0
- rio-orphans-0.1.1.0@sha256:15600084c56ef4e1f22ac2091d10fa6ed62f01f531d819c6a5a19492212a76c9

flags:
cabal-install:
# https://github.com/haskell/cabal/issues/4883
native-dns: false
24 changes: 1 addition & 23 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-11.19
resolver: snapshot.yaml

# docker:
# enable: true
Expand All @@ -16,28 +16,6 @@ flags:
stack:
hide-dependency-versions: true
supported-build: true
# https://github.com/haskell/cabal/issues/4883
cabal-install:
native-dns: false
extra-deps:
- Cabal-2.2.0.1@rev:0
- cabal-install-2.2.0.0@rev:1
- resolv-0.1.1.1@rev:0
- infer-license-0.2.0@rev:0
- hpack-0.29.6@rev:0
- http-api-data-0.3.8.1@rev:0
- githash-0.1.0.1@rev:0

# Avoid https://github.com/commercialhaskell/stack/issues/4125
# (triggered because later versions of persistent transitively depends
# on haskell-src-exts, which needs the 'happy' build tool)
# THIS IS FIXED AS OF STACK 1.8, but keep these here until next major
# version to maintain the ability to build stack with older versions.
- persistent-2.7.1@rev:0
- persistent-sqlite-2.6.4@rev:0
- resourcet-1.1.11@rev:0
- conduit-1.2.13.1@rev:0
- conduit-extra-1.2.3.2@rev:0

ghc-options:
"$locals": -fhide-source-paths

0 comments on commit 9c592a6

Please sign in to comment.