-
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
Have stack just copy unchanged binaries when updating to new LTS #771
Comments
We've had discussions about improving this situation, but it won't be a simple copy. In theory reregistering packages from one database to the other would work, but there's the problem that when a user garbage collects an old snapshot the new snapshot would be broken. We can also consider having one massive package database that everything gets installed to and then take views of that, but (1) that requires GHC 7.10 and newer, and (2) Cabal doesn't have the necessary support yet. tl;dr: There are lots of avenues we can try, but we haven't attacked any of them yet. |
This is starting down the |
No, I've been waiting to see the results of the cabal gsoc to add this On Thu, Aug 13, 2015, 4:57 PM Elliot Cameron [email protected]
|
I've opened #878 about this topic. I'm going to close this issue to move discussion over there. If there's something covered here that's not covered there, please say so. |
Apologies if somehow this is already happening and I missed it. It would be smoothest and fastest to update to newer LTS of Stackage if stack knew to check the version differences and just copy compiled binaries from previous LTS for unchanged items and only compile updated ones. (Maybe to save space could even just link, although that would make each LTS directory less independent, would cause breakage if older LTS directories were purged, although there could be a function that would copy over linked items prior to purging old LTS collections…)
I understand if most things are changing too often for this to work smoothly enough, like dependencies of dependencies etc. — I suppose it'd have to check and recompile all items that had any of their dependencies change.
If this isn't practical, I understand. But maybe it's feasible…
The text was updated successfully, but these errors were encountered: