File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,12 @@ static void builtinFetchTree(const BuiltinBuilderContext & ctx)
43
43
44
44
std::cerr << fmt (" fetching '%s'...\n " , input.to_string ());
45
45
46
- /* Make sure we don't use the real store because we're in a forked
47
- process. */
48
- auto dummyStore = openStore (" dummy://" );
46
+ /* Functions like downloadFile() expect a store. We can't use the
47
+ real one since we're in a forked process. FIXME: use recursive
48
+ Nix's daemon so we can use the real store? */
49
+ auto tmpStore = openStore (ctx.tmpDirInSandbox + " /nix" );
49
50
50
- auto [accessor, lockedInput] = input.getAccessor (dummyStore );
51
+ auto [accessor, lockedInput] = input.getAccessor (tmpStore );
51
52
52
53
auto source = sinkToSource ([&](Sink & sink) { accessor->dumpPath (CanonPath::root, sink); });
53
54
You can’t perform that action at this time.
0 commit comments