Skip to content
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

Unlock output paths when a derivation is already built #6469

Merged
merged 1 commit into from
Nov 16, 2023

Commits on Sep 9, 2023

  1. Unlock output paths when a derivation is already built

    Without this change, nix build processes will not drop the locks for derivation goals
    which have already been built by another process when the current process gets
    round to building them. This means the locks are held until the process
    terminates.
    
    If there are other nix build processes in a similar state, they will also try to
    acquire the same locks when they try to build the same derivation, and so will
    wait until the lock holder terminates (which might be a very long time if it has
    a lot to build). In some pathological cases, those processes might be holding
    their own locks on other derivations due to the same issue, and this can lead to
    deadlock.
    
    Resolves NixOS#6468
    gbpdt committed Sep 9, 2023
    Configuration menu
    Copy the full SHA
    82ddb13 View commit details
    Browse the repository at this point in the history