File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,18 @@ static void builtinFetchTree(const BuiltinBuilderContext & ctx)
20
20
if (!ctx.structuredAttrs )
21
21
throw Error (" 'builtin:fetch-tree' must have '__structuredAttrs = true'" );
22
22
23
+ setenv (" NIX_CACHE_HOME" , ctx.tmpDirInSandbox .c_str (), 1 );
24
+
23
25
using namespace fetchers ;
24
26
25
- fetchers::Settings fetchSettings;
27
+ fetchers::Settings myFetchSettings;
28
+ myFetchSettings.accessTokens = fetchSettings.accessTokens .get ();
29
+
30
+ // FIXME: disable use of the git/tarball cache
31
+
32
+ auto input = Input::fromAttrs (myFetchSettings, jsonToAttrs ((*ctx.structuredAttrs )[" input" ]));
26
33
27
- auto input = Input::fromAttrs (fetchSettings, jsonToAttrs ((*ctx. structuredAttrs )[ " input" ] ));
34
+ std::cerr << fmt ( " fetching '%s'... \n " , input. to_string ( ));
28
35
29
36
/* Make sure we don't use the real store because we're in a forked
30
37
process. */
You can’t perform that action at this time.
0 commit comments