Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: 8215b75d36a6
Choose a base ref
...
head repository: NixOS/nix
compare: 0b606aad46e1
Choose a head ref
  • 2 commits
  • 6 files changed
  • 1 contributor

Commits on Sep 5, 2017

  1. GC: Don't delete own temproots file

    Since file locks are per-process rather than per-file-descriptor, the
    garbage collector would always acquire a lock on its own temproots
    file and conclude that it's stale.
    edolstra committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    b932ea5 View commit details
    Browse the repository at this point in the history
  2. Add automatic garbage collection

    Nix can now automatically run the garbage collector during builds or
    while adding paths to the store. The option "min-free = <bytes>"
    specifies that Nix should run the garbage collector whenever free
    space in the Nix store drops below <bytes>. It will then delete
    garbage until "max-free" bytes are available.
    
    Garbage collection during builds is asynchronous; running builds are
    not paused and new builds are not blocked. However, there also is a
    synchronous GC run prior to the first build/substitution.
    
    Currently, no old GC roots are deleted (as in "nix-collect-garbage
    -d").
    edolstra committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    0b606aa View commit details
    Browse the repository at this point in the history