-
Notifications
You must be signed in to change notification settings - Fork 841
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
Local package dependency ghc-pkg: cannot find package
#5147
Comments
Just ran into this bug again, but both of the packages had exactly the same resolver in them. All I did was compile |
Here is another depiction of the same bug, I believe. Similar setup, but the error is:
|
qrilka
added a commit
that referenced
this issue
Feb 10, 2020
This resolves issue #5147 appearing because a path for setup-config for a package depend on OS and Cabal versions and is stored in .stack-work inside package directory
2 tasks
Fixed by #5169 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
General summary/comments (optional)
When one package
bar
has another local packagefoo
as a dependency (either inpackages
orextrs-deps
), rebuilding separately packagefoo
will cause packagebar
erroring during build with:Steps to reproduce
Here are two sample projects that replicate the problem: https://github.com/lehins/bugs/tree/master/haskell/stack-ghc-pkg-cannot-find-package
Not 100% sure, but I think it is important that
foo
andbar
are both on a different snapshots, but with the same ghc, eg. one islts-14.4
anotherlts-14.20
.Expected
Regardless of the order packages build successfully.
Actual
Here is also a sample log with
--verbose
: https://github.com/lehins/bugs/blob/master/haskell/stack-ghc-pkg-cannot-find-package/output.logStack version
Stack version used was the latest, but I've been observing this issue since
2.0
, but was unable to reproduce it reliably on small set of packagesMethod of installation
stack upgrade --git
The text was updated successfully, but these errors were encountered: