You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Have stack just copy unchanged binaries when updating to new LTS #771
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…
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 nix road (it's a nice road, after all). @snoyberg Is there an issue discussing the kinds of things you guys want to try? E.g. views of one mega-db, downloading bindists instead of sdists, etc.
This is starting down the nix road (it's a nice road, after all). @snoyberghttps://github.com/snoyberg Is there an issue discussing the
kinds of things you guys want to try? E.g. views of one mega-db,
downloading bindists instead of sdists, etc.
—
Reply to this email directly or view it on GitHub #771 (comment)
.
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.
Activity
snoyberg commentedon Aug 13, 2015
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.
3noch commentedon Aug 13, 2015
This is starting down the
nixroad (it's a nice road, after all). @snoyberg Is there an issue discussing the kinds of things you guys want to try? E.g. views of one mega-db, downloading bindists instead of sdists, etc.snoyberg commentedon Aug 13, 2015
No, I've been waiting to see the results of the cabal gsoc to add this
support to the library.
On Thu, Aug 13, 2015, 4:57 PM Elliot Cameron notifications@github.com
wrote:
snoyberg commentedon Aug 30, 2015
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.