-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Looks like something's wrong when running cabal-helper's utility in circleci. It makes the whole integration tests fail.
/nix/store/r198yr21df0jnvaf5apb6pb01a4l3b1i-cabal-helper-0.8.1.2/libexec/x86_64-linux-ghc-8.4.3/cabal-helper-0.8.1.2/cabal-helper-wrapper "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "v1-style" "/home/circleci/project/test/integration/workdir/text-1.2.3.1" "/home/circleci/project/test/integration/workdir/text-1.2.3.1/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output"
cabal-helper-wrapper: Installing a private copy of Cabal because we couldn't
find the right version in your global/user package-db, this might take a
while but will only happen once per Cabal version you're using.
If anything goes horribly wrong just delete this directory and try again:
/home/circleci/.cache/cabal-helper
If you want to avoid this automatic installation altogether install
version 2.2.0.1 of Cabal manually (into your user or global package-db):
$ cabal install Cabal --constraint "Cabal == 2.2.0.1"
Installing Cabal 2.2.0.1 ...
cabal: unrecognised command: get (try --help)
cabal-helper-wrapper: Installing Cabal version 2.2.0.1 failed.
You have the following choices to fix this:
- The easiest way to try and fix this is just reconfigure the project and try
again:
$ cabal clean && cabal configure
- If that fails you can try to install the version of Cabal mentioned above
into your global/user package-db somehow, you'll probably have to fix
something otherwise it wouldn't have failed above:
$ cabal install Cabal --constraint 'Cabal == 2.2.0.1'
- If you're using `Build-Type: Simple`:
- You can see if you can reinstall your cabal-install executable while
having it linked to a version of Cabal that's available in you
package-dbs or can be built automatically:
$ ghc-pkg list | grep Cabal # find an available Cabal version
Cabal-W.X.Y.Z
$ cabal install cabal-install --constraint 'Cabal == W.X.*'
Afterwards you'll have to reconfigure your project:
$ cabal clean && cabal configure
- If you're using `Build-Type: Custom`:
- Have cabal-install rebuild your Setup.hs executable with a version of the
Cabal library that you have available in your global/user package-db:
$ cabal clean && cabal configure
You might also have to install some version of the Cabal to do this:
$ cabal install Cabal
I don't get the
cabal: unrecognised command: get (try --help)
We need to dig this rabbit hole.