-
Notifications
You must be signed in to change notification settings - Fork 701
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
Sandbox targets can prevent reinstallation of packages with setup dependencies #3203
Comments
Can this be solved by simply deduplicating the list of targets? |
I don't know. I didn't understand why the solver linked the unqualified goals and rejected |
@23Skidoo It looks like the open solver pull requests allow the solver to handle duplicate targets. |
@23Skidoo Do you mind if I create a label for issues with build type Custom? |
@grayjay Not at all, please go ahead. |
Thanks. How about "custom-setup"? |
SGTM. |
The solver can handle duplicate targets by linking them together, but the log is more complex, and the result is the same as if the targets were deduplicated beforehand. Duplicate targets can occur in a sandbox (issue haskell#3203).
The solver can handle duplicate targets by linking them together, but the log is more complex, and the result is the same as if the targets were deduplicated beforehand. Duplicate targets can occur in a sandbox (issue haskell#3203).
Fixed |
While experimenting with the
custom-setup
section, I was unable to reinstall a package that depended on two versions of another package. The list of targets in the-v3
log contained all of the installed packages, as well as a second occurrence of the main package. The extra target seemed to prevent the solver from choosing setup dependencies.I wrote some tests that demonstrate the behavior. The unit tests show the effect of duplicate targets, and the integration test reproduces the problem in a sandbox. I'm not sure if this is a bug in sandboxes or the solver.
EDIT: The integration test installs the two dependencies in the sandbox, but I got a similar error when they were installed globally.
Tests: grayjay@42a8bd1
Log: https://ci.appveyor.com/project/grayjay/cabal/build/1.0.78
Unit test database:
Installing A and B:
Specifying each target twice:
The text was updated successfully, but these errors were encountered: