Skip to content

Better error output in case of flags WAS Version bounds in cabal file revisions not taken into account? #713

Closed
@bergmark

Description

@bergmark

I upgraded to the latest version of all my dependencies (not using a snapshot), after this it seems like stack doesn't find a build-plan for blaze-builder-enumerator, relevant snippet:

--  Failure when adding dependencies:
      blaze-builder: needed (>=0.2.1.4 && <0.4), latest is 0.4.0.1, but 0.4.0.1 found
    needed for package: blaze-builder-enumerator-0.2.1.0

But looking at the revision history the package should allow blaze-builder 0.4.*. I don't run across this problem if using a freeze file with cabal-install

This should be reproducible by running stack install on https://github.com/bergmark/stack-bbe-reproduction

Full log (also tested on Version 0.1.2.7, Git revision 68e194622b3c52be3d386b2e9b807ec1ac288828):

> stack install --dry-run -v
Version 0.1.2.1, Git revision 2723b3567e44725b176c35786a5e11db454d183e
2015-08-04 08:52:47.349544: [debug] Checking for project config at: /Users/adam/repos/trustee/bbe/stack.yaml @(stack-0.1.2.1:Stack.Config src/Stack/Config.hs:446:9)
2015-08-04 08:52:47.349875: [debug] Loading project config file stack.yaml @(stack-0.1.2.1:Stack.Config src/Stack/Config.hs:469:13)
2015-08-04 08:52:47.351563: [debug] Run process: ghc --info @(stack-0.1.2.1:System.Process.Read src/System/Process/Read.hs:255:3)
2015-08-04 08:52:47.411485: [debug] Run process: ghc --numeric-version @(stack-0.1.2.1:System.Process.Read src/System/Process/Read.hs:255:3)
2015-08-04 08:52:47.443212: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal id @(stack-0.1.2.1:System.Process.Read src/System/Process/Read.hs:255:3)
2015-08-04 08:52:47.470321: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack-0.1.2.1:System.Process.Read src/System/Process/Read.hs:255:3)
2015-08-04 08:52:47.822214: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack-0.1.2.1:System.Process.Read src/System/Process/Read.hs:255:3)
2015-08-04 08:52:47.854254: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/adam/.stack/snapshots/x86_64-osx/ghc-7.8/7.8.4/pkgdb/ dump --expand-pkgroot @(stack-0.1.2.1:System.Process.Read src/System/Process/Read.hs:255:3)
2015-08-04 08:52:47.871442: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/adam/repos/trustee/bbe/.stack-work/install/x86_64-osx/ghc-7.8/7.8.4/pkgdb/ dump --expand-pkgroot @(stack-0.1.2.1:System.Process.Read src/System/Process/Read.hs:255:3)
While constructing the BuildPlan the following exceptions were encountered:

--  Failure when adding dependencies:
      snap-core: needed (-any), latest is 0.9.7.2, but couldn't resolve its dependencies
      snap-server: needed (-any), latest is 0.9.5.1, but couldn't resolve its dependencies
    needed for package: bbe-0.1.0.0

--  Failure when adding dependencies:
      blaze-builder: needed (>=0.2.1.4 && <0.4), latest is 0.4.0.1, but 0.4.0.1 found
    needed for package: blaze-builder-enumerator-0.2.1.0

--  Failure when adding dependencies:
      blaze-builder-enumerator: needed (>=0.2 && <0.3), latest is 0.2.1.0, but couldn't resolve its dependencies
    needed for package: snap-core-0.9.7.2

--  Failure when adding dependencies:
      blaze-builder-enumerator: needed (>=0.2.0 && <0.3), latest is 0.2.1.0, but couldn't resolve its dependencies
      snap-core: needed (>=0.9.3 && <0.10), latest is 0.9.7.2, but couldn't resolve its dependencies
    needed for package: snap-server-0.9.5.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions