{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/897","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/897/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/897/events","html_url":"https://github.com/commercialhaskell/stack/issues/897","id":104402001,"number":897,"title":"Setup.hs cannot use local snapshot dependencies WAS stack failing to resolve local dependencies of multiple package project","user":{"login":"mitchellwrosen","id":1074598,"avatar_url":"https://avatars.githubusercontent.com/u/1074598?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellwrosen","html_url":"https://github.com/mitchellwrosen","followers_url":"https://api.github.com/users/mitchellwrosen/followers","following_url":"https://api.github.com/users/mitchellwrosen/following{/other_user}","gists_url":"https://api.github.com/users/mitchellwrosen/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellwrosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellwrosen/subscriptions","organizations_url":"https://api.github.com/users/mitchellwrosen/orgs","repos_url":"https://api.github.com/users/mitchellwrosen/repos","events_url":"https://api.github.com/users/mitchellwrosen/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellwrosen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/awaiting%20pr","name":"awaiting pr","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":182,"closed_issues":243,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2016-09-19T16:32:46Z","due_on":"2016-12-31T08:00:00Z","closed_at":null},"comments":17,"created_at":"2015-09-02T04:51:12Z","updated_at":"2016-09-19T17:33:54Z","closed_at":"2015-09-07T09:58:41Z","body":"Hi, I can't seem to reproduce this with a smaller example repo so I'll just point to the one that's failing: https://github.com/mitchellwrosen/cabal-macosx/tree/b6e5f714fbf451a72c8b7e70577ce7d9e342f8d0\r\n\r\nI'm trying to stackify this three year old repo, and the example projects, which depend on the `cabal-macosx`, fail to build:\r\n\r\n```\r\n--  While building package gtkHello-0.1.0 using:\r\n      /Users/mrosen/.stack/programs/x86_64-osx/ghc-7.10.2/bin/runhaskell -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ /Users/mrosen/haskell/cabal-macosx/examples/gtkHello/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --package-db=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --dependency=base=base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f --dependency=cabal-macosx=cabal-macosx-0.2.2-2b48f42cc1cff87ee217afa95d34d3ed --dependency=gtk=gtk-0.13.9-37993e343fdd10dc6c30b07beea3d344 --libdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/lib --bindir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/bin --datadir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/share --docdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0 --htmldir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0 --haddockdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: /Users/mrosen/haskell/cabal-macosx/.stack-work/logs/gtkHello-0.1.0.log\r\n\r\n\r\n    /Users/mrosen/haskell/cabal-macosx/examples/gtkHello/Setup.hs:3:8:\r\n        Could not find module ‘Distribution.MacOSX’\r\n        Perhaps you meant\r\n          Distribution.Make (from Cabal-1.22.4.0@Cabal_96aI7pZyaxU3dsgngOxbdK)\r\n          Distribution.GetOpt\r\n          Distribution.Package (from Cabal-1.22.4.0@Cabal_96aI7pZyaxU3dsgngOxbdK)\r\n        Use -v to see a list of the files searched for.\r\n```\r\n\r\nI'm not really sure why; `stack exec ghc-pkg list` shows `cabal-macosx-0.2.2` in `.stack-work/install/x86_64-osx/lts-3.3/7.10.2/pkgdb`, and `stack exec ghc-pkg describe cabal-macosx` lists `Distribution.MacOSX` as an exposed module. And as I said, I couldn't replicate this with a simpler multiple-package example.\r\n\r\nHere's the entire `stack -v build` in case any of it is relevant:\r\n\r\n```\r\nVersion 0.1.3.1\r\n2015-09-02 04:53:55.87362: [debug] Checking for project config at: /Users/mrosen/haskell/cabal-macosx/stack.yaml @(stack-0.1.3.1:Stack.Config src/Stack/Config.hs:459:9)\r\n2015-09-02 04:53:55.873842: [debug] Loading project config file stack.yaml @(stack-0.1.3.1:Stack.Config src/Stack/Config.hs:482:13)\r\n2015-09-02 04:53:55.883887: [debug] Run process: ghc --info @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:55.937986: [debug] Run process: ghc --numeric-version @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:55.965839: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal id @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:55.986855: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:56.009977: [debug] Checking resolver: lts-3.3 @(stack-0.1.3.1:Stack.Build.Source src/Stack/Build/Source.hs:76:13)\r\n2015-09-02 04:53:56.215766: [warn] Warning: modules not listed in cabal-macosx.cabal for 'macosx-app' component (add to other-modules):\r\n    Distribution.MacOSX\r\n    Distribution.MacOSX.AppBuildInfo\r\n    Distribution.MacOSX.Common\r\n    Distribution.MacOSX.DG\r\n    Distribution.MacOSX.Dependencies @(stack-0.1.3.1:Stack.Package src/Stack/Package.hs:647:11)\r\n2015-09-02 04:53:56.21763: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:56.248176: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ dump --expand-pkgroot @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:56.360577: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/pkgdb/ dump --expand-pkgroot @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:56.73411: [debug] All installs are local; releasing snapshot lock early. @(stack-0.1.3.1:Stack.Build src/Stack/Build.hs:92:28)\r\n2015-09-02 04:53:56.734519: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack-0.1.3.1:System.Process.Read src/System/Process/Read.hs:255:3)\r\n2015-09-02 04:53:56.757883: [info] gtkHello-0.1.0: configure @(stack-0.1.3.1:Stack.Build.Execute src/Stack/Build/Execute.hs:505:18)\r\n2015-09-02 04:53:56.758061: [debug] Run process: /Users/mrosen/.stack/programs/x86_64-osx/ghc-7.10.2/bin/runhaskell -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ /Users/mrosen/haskell/cabal-macosx/examples/gtkHello/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --package-db=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --dependency=base=base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f --dependency=cabal-macosx=cabal-macosx-0.2.2-2b48f42cc1cff87ee217afa95d34d3ed --dependency=gtk=gtk-0.13.9-37993e343fdd10dc6c30b07beea3d344 --libdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/lib --bindir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/bin --datadir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/share --docdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0 --htmldir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0 --haddockdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0 @(stack-0.1.3.1:Stack.Build.Execute src/Stack/Build/Execute.hs:611:13)\r\n2015-09-02 04:53:56.94405: [info] wxHello-0.1.0: configure @(stack-0.1.3.1:Stack.Build.Execute src/Stack/Build/Execute.hs:505:18)\r\n2015-09-02 04:53:56.944259: [debug] Run process: /Users/mrosen/.stack/programs/x86_64-osx/ghc-7.10.2/bin/runhaskell -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ /Users/mrosen/haskell/cabal-macosx/examples/wxHello/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --package-db=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --dependency=base=base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f --dependency=cabal-macosx=cabal-macosx-0.2.2-2b48f42cc1cff87ee217afa95d34d3ed --dependency=wx=wx-0.92.0.0-4fb8738e2e82f261b6019b277a7473cf --libdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/lib --bindir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/bin --datadir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/share --docdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/wxHello-0.1.0 --htmldir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/wxHello-0.1.0 --haddockdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/wxHello-0.1.0 @(stack-0.1.3.1:Stack.Build.Execute src/Stack/Build/Execute.hs:611:13)\r\nCompleted all 2 actions.\r\n\r\n--  While building package wxHello-0.1.0 using:\r\n      /Users/mrosen/.stack/programs/x86_64-osx/ghc-7.10.2/bin/runhaskell -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ /Users/mrosen/haskell/cabal-macosx/examples/wxHello/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --package-db=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --dependency=base=base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f --dependency=cabal-macosx=cabal-macosx-0.2.2-2b48f42cc1cff87ee217afa95d34d3ed --dependency=wx=wx-0.92.0.0-4fb8738e2e82f261b6019b277a7473cf --libdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/lib --bindir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/bin --datadir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/share --docdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/wxHello-0.1.0 --htmldir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/wxHello-0.1.0 --haddockdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/wxHello-0.1.0\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: /Users/mrosen/haskell/cabal-macosx/.stack-work/logs/wxHello-0.1.0.log\r\n\r\n\r\n    /Users/mrosen/haskell/cabal-macosx/examples/wxHello/Setup.hs:3:8:\r\n        Could not find module ‘Distribution.MacOSX’\r\n        Perhaps you meant\r\n          Distribution.Make (from Cabal-1.22.4.0@Cabal_96aI7pZyaxU3dsgngOxbdK)\r\n          Distribution.GetOpt\r\n          Distribution.Package (from Cabal-1.22.4.0@Cabal_96aI7pZyaxU3dsgngOxbdK)\r\n        Use -v to see a list of the files searched for.\r\n\r\n\r\n--  While building package gtkHello-0.1.0 using:\r\n      /Users/mrosen/.stack/programs/x86_64-osx/ghc-7.10.2/bin/runhaskell -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ /Users/mrosen/haskell/cabal-macosx/examples/gtkHello/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/Users/mrosen/.stack/snapshots/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --package-db=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/pkgdb/ --dependency=base=base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f --dependency=cabal-macosx=cabal-macosx-0.2.2-2b48f42cc1cff87ee217afa95d34d3ed --dependency=gtk=gtk-0.13.9-37993e343fdd10dc6c30b07beea3d344 --libdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/lib --bindir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/bin --datadir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/share --docdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0 --htmldir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0 --haddockdir=/Users/mrosen/haskell/cabal-macosx/.stack-work/install/x86_64-osx/lts-3.3/7.10.2/doc/gtkHello-0.1.0\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: /Users/mrosen/haskell/cabal-macosx/.stack-work/logs/gtkHello-0.1.0.log\r\n\r\n\r\n    /Users/mrosen/haskell/cabal-macosx/examples/gtkHello/Setup.hs:3:8:\r\n        Could not find module ‘Distribution.MacOSX’\r\n        Perhaps you meant\r\n          Distribution.Make (from Cabal-1.22.4.0@Cabal_96aI7pZyaxU3dsgngOxbdK)\r\n          Distribution.GetOpt\r\n          Distribution.Package (from Cabal-1.22.4.0@Cabal_96aI7pZyaxU3dsgngOxbdK)\r\n        Use -v to see a list of the files searched for.\r\n```"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/248062739","html_url":"https://github.com/commercialhaskell/stack/issues/897#issuecomment-248062739","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/897","id":248062739,"user":{"login":"asr","id":635804,"avatar_url":"https://avatars.githubusercontent.com/u/635804?v=3","gravatar_id":"","url":"https://api.github.com/users/asr","html_url":"https://github.com/asr","followers_url":"https://api.github.com/users/asr/followers","following_url":"https://api.github.com/users/asr/following{/other_user}","gists_url":"https://api.github.com/users/asr/gists{/gist_id}","starred_url":"https://api.github.com/users/asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asr/subscriptions","organizations_url":"https://api.github.com/users/asr/orgs","repos_url":"https://api.github.com/users/asr/repos","events_url":"https://api.github.com/users/asr/events{/privacy}","received_events_url":"https://api.github.com/users/asr/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T17:33:53Z","updated_at":"2016-09-19T17:33:53Z","body":"After installing `uuagc-cabal` in the shuffle directory I got the same error."}}
{"actor":{"display_login":"asr"}}