-
Notifications
You must be signed in to change notification settings - Fork 848
Error without any exceptions #4365
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
Comments
Hi @boris-stepanov, thanks for the report. I'll test this out tomorrow. Meanwhile, would you please re-run with
The test suites of L1 and E1 depend on L2, and L2 depends on L1. This isn't actually a cycle, correct?
|
OK, I can reproduce |
I believe the issue is that stack configures packages on a per-package basis, not a per-component basis. (A component is a library, test suite, or executable; a package may have multiple components). I'll try to confirm this. |
There are a few more variations, too, e.g. does it work with (missing) transitive dependencies where there is no package cycle? |
@dbaynard, uhm, sorry, are you waiting for my response?
I am not sure, can you provide cabal files for example? |
Ah, sort of… although (via @snoyberg) packages must have at least a library or executable; Let's try that first, then we can look at my more complicated suggestion… and thank you for your patience. |
Related: #2583 Actually, this may be a duplicate? |
Uh oh!
There was an error while loading. Please reload this page.
General summary/comments
Stack doesn't properly resolve dependencies between libraries and test-suites. I found it while refactoring my own code, so it's a real world scenario. Solution it to add "L1" as a dependency for "E1" test-suite.
Steps to reproduce
stack test
Expected
Stack throws somewhat like
Dependency cycle detected in packages: [L2,L1,L2,E1]
or fails on compile stage.Actual
Stack fails while constructing a plan with empty error message:
Stack version
Method of installation
Official binary, downloaded from stackage.org.
The text was updated successfully, but these errors were encountered: