aboutsummaryrefslogtreecommitdiff
path: root/src/nix/store-gc.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-25 16:46:28 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-25 16:48:50 +0000
commit0966532dc15485f24080e868f0c0553b5dc762c9 (patch)
tree4c3b0f31331b0588133bbbd0083adc85450fcc46 /src/nix/store-gc.cc
parente5c42bba9bf76d00fb15ec9a179bf91aa81c38c6 (diff)
parent1844172dd16cab611a0148be9381ab856bf241df (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.cc3
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;