Skip to content

Have stack just copy unchanged binaries when updating to new LTS #771

Closed

Description

@wolftune

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…

Activity

  1. snoyberg commented on Aug 13, 2015

    @snoyberg
    Contributor

    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.

  2. 3noch commented on Aug 13, 2015

    @3noch
    Member

    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.

  3. snoyberg commented on Aug 13, 2015

    @snoyberg
    Contributor

    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:

    This is starting down the nix road (it's a nice road, after all).
    @snoyberg https://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)
    .

  4. added this to the milestone on Aug 13, 2015
  5. snoyberg commented on Aug 30, 2015

    @snoyberg
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions