Skip to content

[nix-local-build] Recompilation avoidance ABA problem #3179

Open
@ezyang

Description

@ezyang

Steps to reproduce:

  1. Build a project with new-build
  2. Modify a file in the project
  3. Trigger a recompilation, but before GHC is done executing, C^C it
  4. Revert the modified file to its old version
  5. Trigger a recompilation

Expected result: Cabal recompiles

Actual result: Cabal reports that there is nothing to do.

Ostensibly, the problem is that before we start a recompile, we need to invalidate the old cached entry until the recompile finishes, so that we can handle an interrupt.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions