Skip to content

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

@wolftune

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…

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