daemon: Clear $NIX_SUBSTITUTERS when passed '--no-substitutes'.
* nix/nix-daemon/guix-daemon.cc (main): When --no-substitutes is used,
clear NIX_SUBSTITUTERS. Before that, and after
89faa5c75c
, '--no-substitutes' would
lead to attempts to use 'download-using-manifests.pl', which in
practice would gracelessly fail.
This commit is contained in:
parent
ad0ab74eef
commit
968e84a6cf
@ -296,6 +296,13 @@ main (int argc, char *argv[])
|
||||
setenv ("NIX_SUBSTITUTERS", subst.c_str (), 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
/* Clear the substituter list to make sure nothing ever gets
|
||||
substituted, regardless of the client's settings. */
|
||||
setenv ("NIX_SUBSTITUTERS", "", 1);
|
||||
|
||||
/* Effect the $NIX_SUBSTITUTERS change. */
|
||||
settings.update ();
|
||||
|
||||
if (geteuid () == 0 && settings.buildUsersGroup.empty ())
|
||||
fprintf (stderr, "warning: daemon is running as root, so "
|
||||
|
Loading…
Reference in New Issue
Block a user