Process nix.conf options in "new" nix commands, add test.

Without this (minor) change, the options set using "--option"
or read from nix.conf were parsed but not used.
This commit is contained in:
Will Dietz
2017-04-08 12:59:42 -05:00
parent d8ff3aaae7
commit 30f89e0d65
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -42,6 +42,7 @@ void mainWrapped(int argc, char * * argv)
NixArgs args;
args.parseCmdline(argvToStrings(argc, argv));
settings.update();
assert(args.command);
+5
View File
@@ -29,3 +29,8 @@ if nix-build timeout.nix -A closeLog; then
echo "build should have failed"
exit 1
fi
if nix build -f timeout.nix silent --option build-max-silent-time 2; then
echo "build should have failed"
exit 1
fi