-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coala has three haskell dependencies: - ghc-mod 5.6.0.0 - hlint 1.9.26 - ShellCheck 0.4.1 Currently CI pulls these haskell packages from various sources including Ubuntu apt-get package database, manually installing debs, and running `cabal install foo` using two different Cabal versions. This barely works, and those versions are not compatible. The closest compatible combination requires bumping hlint to 1.9.27. The dependencies have been placed into a `coala-bears.cabal` so they can be easily fetched and installed using `cabal install`, which will look for a combination of versions that meets all criteria. On Travis, removing 'haskell-platform' from the apt-get package list reduces the number of packages fetched, most of which were not the correct version needed by the coala dependencies. Removing this prevents conflicts, and speeds up the build. Instead 'happy' is added as this is an executable needed to build the dependencies. Using cabal properly with a .cabal file also solves the cabal caching problems. Fixes #1380
- Loading branch information
Showing
6 changed files
with
40 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
set -e | ||
|
||
# cabal-install 1.22 is the minimum tested version | ||
cabal --version | ||
|
||
cabal update | ||
|
||
cabal install --only-dependencies --avoid-reinstalls | ||
|
||
# Force ghc-mod to resolve its Cabal version | ||
~/.cabal/bin/ghc-mod modules |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Name: coala-bears | ||
Version: 0.10 | ||
cabal-version: >= 1.2 | ||
build-type: Simple | ||
|
||
-- safe 0.3.9 is needed to coexist with Cabal 1.16 | ||
-- safe 0.3.10 requires Cabal 1.18 | ||
|
||
-- Note trusty apt package "haskell-platform" includes mtl-2.1.2 | ||
-- which is incompatible with ShellCheck 0.4.1 which needs mtl-2.2.1 | ||
|
||
library | ||
build-depends: base, Cabal>=1.16, safe==0.3.9, ghc-mod==5.6.0.0, hlint==1.9.27, ShellCheck==0.4.1 |