-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Labels
Milestone
Description
It seems like allow-newer doesn't always allow-newer! The essential parts of the reproduction below are:
- My package depends on
mmorph transformers-0.5.0.0is inextra-depsmmorphDoesn't allowtransformers-0.5.0.0- I've enabled
allow-newer: True - Running
stack builderrors out with
Configuring mmorph-1.0.4... setup-Simple-Cabal-1.22.5.0-ghc-7.10.3: At least the following dependencies are missing: transformers >=0.2.0.0 && <0.5 && ==0.5.0.0
Currently the only workaround I've found is to add mmorph as a local package and relaxing the transformers constraint in its cabal file.
Full reproduction:
V~/repos> ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
V~/repos> stack --version
Version 1.0.0 x86_64
V~/repos> git clone [email protected]:bergmark/stack-allow-newer.git
Cloning into 'stack-allow-newer'...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10 (delta 1), reused 10 (delta 1), pack-reused 0
Receiving objects: 100% (10/10), done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
V~/repos> cd stack-allow-newer/
V~/r/stack-allow-newer master> ls
LICENSE Setup.hs src stack.yaml test.cabal
V~/r/stack-allow-newer master> stack build --dry-run
WARNING: Ignoring out of range dependency (allow-newer enabled): transformers-0.5.0.0. mmorph requires: >=0.2.0.0 && <0.5
No packages would be unregistered.
Would build:
mmorph-1.0.4: database=local, source=package index, after: transformers-0.5.0.0
test-0.1.0.0: database=local, source=/Users/adam/repos/stack-allow-newer/, after: mmorph-1.0.4
transformers-0.5.0.0: database=local, source=package index
No executables to be installed.
V~/r/stack-allow-newer master> stack build -v
Version 1.0.0 x86_64
2015-12-30 17:02:07.866168: [debug] Checking for project config at: /Users/adam/repos/stack-allow-newer/stack.yaml @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Config src/Stack/Config.hs:577:9)
2015-12-30 17:02:07.867348: [debug] Loading project config file stack.yaml @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Config src/Stack/Config.hs:600:13)
2015-12-30 17:02:07.868859: [debug] Trying to decode /Users/adam/.stack/build-plan-cache/x86_64-osx/nightly-2015-12-30.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-30 17:02:07.890366: [debug] Success decoding /Users/adam/.stack/build-plan-cache/x86_64-osx/nightly-2015-12-30.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-30 17:02:07.890533: [debug] Trying to decode /Users/adam/.stack/indices/Hackage/00-index.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-30 17:02:08.246045: [debug] Success decoding /Users/adam/.stack/indices/Hackage/00-index.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-30 17:02:08.261555: [debug] Run process: ghc --info @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.341266: [debug] Run process: ghc --numeric-version @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.386835: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.415385: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.449187: [debug] Run process: locale -a @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.464777: [debug] Checking resolver: nightly-2015-12-30 @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.Source src/Stack/Build/Source.hs:164:17)
2015-12-30 17:02:08.465002: [debug] Trying to decode /Users/adam/.stack/build-plan-cache/x86_64-osx/nightly-2015-12-30.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-30 17:02:08.580945: [debug] Success decoding /Users/adam/.stack/build-plan-cache/x86_64-osx/nightly-2015-12-30.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-30 17:02:08.585757: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.639184: [debug] Ignoring package haskeline due to wrong location: (Nothing,Local) @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-30 17:02:08.639337: [debug] Ignoring package terminfo due to wanting version 0.4.0.2 instead of 0.4.0.1 @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-30 17:02:08.639500: [debug] Ignoring package transformers due to wrong location: (Nothing,Local) @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-30 17:02:08.639579: [debug] Ignoring package Cabal due to wanting version 1.22.6.0 instead of 1.22.5.0 @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-30 17:02:08.675123: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/adam/.stack/snapshots/x86_64-osx/nightly-2015-12-30/7.10.3/pkgdb dump --expand-pkgroot @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.713516: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/pkgdb dump --expand-pkgroot @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:08.742686: [debug] Trying to decode /Users/adam/.stack/indices/Hackage/00-index.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-30 17:02:09.072138: [debug] Success decoding /Users/adam/.stack/indices/Hackage/00-index.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-30 17:02:09.191892: [warn] WARNING: Ignoring out of range dependency (allow-newer enabled): transformers-0.5.0.0. mmorph requires: >=0.2.0.0 && <0.5 @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.ConstructPlan src/Stack/Build/ConstructPlan.hs:148:11)
2015-12-30 17:02:09.192822: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_AiuFEtMyGSB1lMos3PapcF:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-30 17:02:09.220260: [debug] Trying to decode /Users/adam/.stack/indices/Hackage/00-index.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-30 17:02:09.567253: [debug] Success decoding /Users/adam/.stack/indices/Hackage/00-index.cache @(stack_AiuFEtMyGSB1lMos3PapcF:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-30 17:02:09.587612: [info] mmorph-1.0.4: configure @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.Execute src/Stack/Build/Execute.hs:668:23)
2015-12-30 17:02:09.588108: [debug] Run process: /Users/adam/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 configure --with-ghc=/Users/adam/.ghc-7.10.3/bin/ghc --with-ghc-pkg=/Users/adam/.ghc-7.10.3/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/adam/.stack/snapshots/x86_64-osx/nightly-2015-12-30/7.10.3/pkgdb --package-db=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/pkgdb --libdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/lib --bindir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/bin --datadir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/share --libexecdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/libexec --sysconfdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/etc --docdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/doc/mmorph-1.0.4 --htmldir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/doc/mmorph-1.0.4 --haddockdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/doc/mmorph-1.0.4 --dependency=base=base-4.8.2.0-cc43d8e06aa74e9c4c0132becc49ee25 --dependency=transformers=transformers-0.5.0.0-801823ea63f393cac32b591c99f746d0 @(stack_AiuFEtMyGSB1lMos3PapcF:Stack.Build.Execute src/Stack/Build/Execute.hs:812:21)
Progress: 1/2
-- While building package mmorph-1.0.4 using:
/Users/adam/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 configure --with-ghc=/Users/adam/.ghc-7.10.3/bin/ghc --with-ghc-pkg=/Users/adam/.ghc-7.10.3/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/adam/.stack/snapshots/x86_64-osx/nightly-2015-12-30/7.10.3/pkgdb --package-db=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/pkgdb --libdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/lib --bindir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/bin --datadir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/share --libexecdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/libexec --sysconfdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/etc --docdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/doc/mmorph-1.0.4 --htmldir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/doc/mmorph-1.0.4 --haddockdir=/Users/adam/repos/stack-allow-newer/.stack-work/install/x86_64-osx/nightly-2015-12-30/7.10.3/doc/mmorph-1.0.4 --dependency=base=base-4.8.2.0-cc43d8e06aa74e9c4c0132becc49ee25 --dependency=transformers=transformers-0.5.0.0-801823ea63f393cac32b591c99f746d0
Process exited with code: ExitFailure 1
Logs have been written to: /Users/adam/repos/stack-allow-newer/.stack-work/logs/mmorph-1.0.4.log
Configuring mmorph-1.0.4...
setup-Simple-Cabal-1.22.5.0-ghc-7.10.3: At least the following dependencies
are missing:
transformers >=0.2.0.0 && <0.5 && ==0.5.0.0