-
Notifications
You must be signed in to change notification settings - Fork 711
Unexpected reinstall with sandboxes #1274
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
Here is the set of the packages in the sandbox:
|
These are exactly the kind of issues we'd like to find before the release. Thanks for the report. Any way you could publish the packages needed to repro this somewhere online (doesn't have to be Hackage). |
This is caused by this fragment in
The problem is that we're running This is a kind of problem |
Ah, that makes sense. But perhaps cabal should unregister these packages (or something along those lines) before re-installing them to avoid this effect? |
Is there a cheap check we could make to see if rebuild is not required? (I guess not.) |
@tibbe The only thing I can think of is to check the modification date of all modules and compare that with the modification date of exe/library. @feuerbach Yes, unregistering add-source packages before reinstalling makes sense. |
On the topic of a smarter rebuild check, do you think that we could get away with just comparing the modification dates of the add-source deps' sources with the modification date of That'd also allow us to implement add-source by copying as @feuerbach suggested in #1281. One thing I'll have to investigate is whether we can get a list of all sources just by parsing a |
Looking at |
Closing in favor of the other tickets seems sensible. |
I'm hitting a strange issue with sandboxes.
Here's what I did:
Created a sandbox for one of my projects
add-source
'd a bunch of other local repositoriesRan
cabal install -j --enable-tests
. Tests were run and all the deps installed.Ran
cabal test
. Suddenly, cabal wants to rebuild some dependencies.It's totally unclear why reinstalls are happening. I don't see any "rejecting ..." messages from the solver. Besides, nothing has changed between
cabal install --enable-tests
andcabal test
, so the installed package set should be sufficient.The text was updated successfully, but these errors were encountered: