New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`stack install codex` fails with lts-7.0 #63

Closed
mayeranalytics opened this Issue Sep 22, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@mayeranalytics

mayeranalytics commented Sep 22, 2016

Steps to reproduce

Starting with a clean Ubuntu VM:

  1. stack --resolver lts-7.0 setup
  2. stack --resolver lts-7.0 install codex

Result:

Run from outside a project, using implicit global project config
Using resolver: lts-7.0 specified on command line

While constructing the build plan, the following exceptions were encountered:

In the dependencies for codex-0.5.0.1:
    machines-directory must match >=0.0.0.2 && <0.3, but the stack configuration has no specified version
                       (latest applicable is 0.2.0.9)

Recommended action: try adding the following to your extra-deps in /home/parallels/.stack/global-project/stack.yaml:
- machines-directory-0.2.0.9

You may also want to try the 'stack solver' command
Plan construction failed.

Following the recommended action I add to the extra-deps in stack.yaml. After running stack --resolver lts-7.0 install codex again I get failure with recommendation to add machines-io-0.2.0.13.

The file .stack/global-project/stack.yaml then reads:

flags: {}
extra-package-dbs: []
packages: []
extra-deps:
  - machines-directory-0.2.0.9
  - machines-io-0.2.0.13

resolver: lts-7.0

Running stack --resolver lts-7.0 install codex again results in an error:

--  While building package codex-0.5.0.1 using:
      /home/username/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 configure --with-ghc=/home/parallels/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc --with-ghc-pkg=/home/parallels/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/parallels/.stack/snapshots/x86_64-linux/lts-7.0/8.0.1/pkgdb --package-db=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/pkgdb --libdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/lib --bindir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/bin --datadir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/share --libexecdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/libexec --sysconfdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/etc --docdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/doc/codex-0.5.0.1 --htmldir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/doc/codex-0.5.0.1 --haddockdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/doc/codex-0.5.0.1 --dependency=Cabal=Cabal-1.24.0.0 --dependency=MissingH=MissingH-1.4.0.1-EKn7kuoDq1aaX1Pfc3iyM --dependency=base=base-4.9.0.0 --dependency=bytestring=bytestring-0.10.8.1 --dependency=containers=containers-0.5.7.1 --dependency=cryptohash=cryptohash-0.11.9-9KNu0EEbreBFrmNJAeHgYz --dependency=directory=directory-1.2.6.2 --dependency=either=either-4.4.1.1-1JTyD8xndhVAzIXQKhnRWZ --dependency=filepath=filepath-1.4.1.0 --dependency=hackage-db=hackage-db-1.22-I0Ykx1cW36Q2UDcO4nPCnl --dependency=http-client=http-client-0.4.31.1-CRzZbHb7fhvLc1hBac01Vk --dependency=lens=lens-4.14-LQbbTc84mRL8zB39b41ZKA --dependency=machines=machines-0.6.1-EtSiV7Anza02d5tsjlvU8s --dependency=machines-directory=machines-directory-0.2.0.9-KwmD3KP06ftLIcPjrPvOFu --dependency=monad-loops=monad-loops-0.4.3-1xZFtRVMQPC4X8bjTBWqNi --dependency=network=network-2.6.3.1-G4Up1CPKbp7DeFsnywOnGG --dependency=process=process-1.4.2.0 --dependency=tar=tar-0.5.0.3-Lj53UbIqLpELgGWYmsAfKo --dependency=text=text-1.2.2.1-5QpmrLQApEZ4Ly9nMHWY0s --dependency=transformers=transformers-0.5.2.0 --dependency=wreq=wreq-0.4.1.0-8bCdhFjgkLE6wlj1xh5qRg --dependency=yaml=yaml-0.8.18.6-8kElhq9L84mFnuAIrwPXyZ --dependency=zlib=zlib-0.6.1.1-4cYT5jyS3jw6zZyCUZMz3T
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/parallels/.stack/global-project/.stack-work/logs/codex-0.5.0.1.log

    Configuring codex-0.5.0.1...
    setup-Simple-Cabal-1.24.0.0-ghc-8.0.1: Encountered missing dependencies:
    codex ==0.5.0.0

Doing the same with lts-6.12 works fine. Apparently there is a circular dependency somewhere.

Note: LTS Haskell 7.0 (gcc-8.0.1) just came out so it's not at all surprising that there are some issues.

Stack version

$ stack --version
Version 1.2.0, Git revision 241cd07d576d9c0c0e712e83d947e3dd64541c42 (4054 commits) x86_64 hpack-0.14.0

Method of installation

  • wget -qO- https://get.haskellstack.org/ | sh
@sjakobi

This comment has been minimized.

sjakobi commented Sep 22, 2016

I think this is due to

executable codex
  build-depends:
     ...        
    , codex               == 0.5.0.0

in codex-0.5.0.1.

@bitemyapp

This comment has been minimized.

Collaborator

bitemyapp commented Sep 22, 2016

@sjakobi yeah, fix is in, just need to do another release. Apologies!

@bitemyapp

This comment has been minimized.

Collaborator

bitemyapp commented Sep 22, 2016

@sjakobi @mayeranalytics I deprecated 0.5.0.1 and uploaded 0.5.0.2, let me know if this works for you. If it does, I'll close the issue. Thank you!

@mayeranalytics

This comment has been minimized.

mayeranalytics commented Sep 22, 2016

Works fine, Thanks a lot!

@bitemyapp bitemyapp closed this Sep 22, 2016

@aloiscochard

This comment has been minimized.

Owner

aloiscochard commented Sep 22, 2016

@bitemyapp I should have warn you about this dreadful gotcha, sorry for that and thanks for the effort!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment