We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0159911 commit 7e50ba7Copy full SHA for 7e50ba7
1 file changed
src/libfetchers/builtin.cc
@@ -43,11 +43,12 @@ static void builtinFetchTree(const BuiltinBuilderContext & ctx)
43
44
std::cerr << fmt("fetching '%s'...\n", input.to_string());
45
46
- /* Make sure we don't use the real store because we're in a forked
47
- process. */
48
- auto dummyStore = openStore("dummy://");
+ /* Functions like downloadFile() expect a store. We can't use the
+ real one since we're in a forked process. FIXME: use recursive
+ Nix's daemon so we can use the real store? */
49
+ auto tmpStore = openStore(ctx.tmpDirInSandbox + "/nix");
50
- auto [accessor, lockedInput] = input.getAccessor(dummyStore);
51
+ auto [accessor, lockedInput] = input.getAccessor(tmpStore);
52
53
auto source = sinkToSource([&](Sink & sink) { accessor->dumpPath(CanonPath::root, sink); });
54
0 commit comments