diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2022-03-25 16:46:28 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2022-03-25 16:48:50 +0000 |
commit | 0966532dc15485f24080e868f0c0553b5dc762c9 (patch) | |
tree | 4c3b0f31331b0588133bbbd0083adc85450fcc46 /src/nix/store-gc.cc | |
parent | e5c42bba9bf76d00fb15ec9a179bf91aa81c38c6 (diff) | |
parent | 1844172dd16cab611a0148be9381ab856bf241df (diff) |
Merge remote-tracking branch 'upstream' into indexed-store-path-outputs
Co-Authored-By: Tom Bereknyei <tomberek@gmail.com>
Diffstat (limited to 'src/nix/store-gc.cc')
-rw-r--r-- | src/nix/store-gc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/store-gc.cc b/src/nix/store-gc.cc index 21718dc0c..8b9b5d164 100644 --- a/src/nix/store-gc.cc +++ b/src/nix/store-gc.cc @@ -2,6 +2,7 @@ #include "common-args.hh" #include "shared.hh" #include "store-api.hh" +#include "store-cast.hh" #include "gc-store.hh" using namespace nix; @@ -34,7 +35,7 @@ struct CmdStoreGC : StoreCommand, MixDryRun void run(ref<Store> store) override { - auto & gcStore = requireGcStore(*store); + auto & gcStore = require<GcStore>(*store); options.action = dryRun ? GCOptions::gcReturnDead : GCOptions::gcDeleteDead; GCResults results; |