File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,11 +20,18 @@ static void builtinFetchTree(const BuiltinBuilderContext & ctx)
2020 if (!ctx.structuredAttrs )
2121 throw Error (" 'builtin:fetch-tree' must have '__structuredAttrs = true'" );
2222
23+ setenv (" NIX_CACHE_HOME" , ctx.tmpDirInSandbox .c_str (), 1 );
24+
2325 using namespace fetchers ;
2426
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" ]));
2633
27- auto input = Input::fromAttrs (fetchSettings, jsonToAttrs ((*ctx. structuredAttrs )[ " input" ] ));
34+ std::cerr << fmt ( " fetching '%s'... \n " , input. to_string ( ));
2835
2936 /* Make sure we don't use the real store because we're in a forked
3037 process. */
You can’t perform that action at this time.
0 commit comments