Merge pull request #7610 from obsidiansystems/gate-default-settings
Punt on improper global flags for now
This commit is contained in:
commit
70bb7b7289
|
@ -83,6 +83,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
|
||||||
.description = "Print full build logs on standard error.",
|
.description = "Print full build logs on standard error.",
|
||||||
.category = loggingCategory,
|
.category = loggingCategory,
|
||||||
.handler = {[&]() { logger->setPrintBuildLogs(true); }},
|
.handler = {[&]() { logger->setPrintBuildLogs(true); }},
|
||||||
|
.experimentalFeature = Xp::NixCommand,
|
||||||
});
|
});
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
|
@ -98,6 +99,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
|
||||||
.description = "Disable substituters and consider all previously downloaded files up-to-date.",
|
.description = "Disable substituters and consider all previously downloaded files up-to-date.",
|
||||||
.category = miscCategory,
|
.category = miscCategory,
|
||||||
.handler = {[&]() { useNet = false; }},
|
.handler = {[&]() { useNet = false; }},
|
||||||
|
.experimentalFeature = Xp::NixCommand,
|
||||||
});
|
});
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
|
@ -105,6 +107,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
|
||||||
.description = "Consider all previously downloaded files out-of-date.",
|
.description = "Consider all previously downloaded files out-of-date.",
|
||||||
.category = miscCategory,
|
.category = miscCategory,
|
||||||
.handler = {[&]() { refresh = true; }},
|
.handler = {[&]() { refresh = true; }},
|
||||||
|
.experimentalFeature = Xp::NixCommand,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,3 +21,15 @@ both_ways store gc --help
|
||||||
|
|
||||||
expect 1 nix --experimental-features 'nix-command' show-config --flake-registry 'https://no'
|
expect 1 nix --experimental-features 'nix-command' show-config --flake-registry 'https://no'
|
||||||
nix --experimental-features 'nix-command flakes' show-config --flake-registry 'https://no'
|
nix --experimental-features 'nix-command flakes' show-config --flake-registry 'https://no'
|
||||||
|
|
||||||
|
# Double check this is stable
|
||||||
|
nix --experimental-features '' --help
|
||||||
|
|
||||||
|
# These 3 arguments are currently given to all commands, which is wrong (as not
|
||||||
|
# all care). To deal with fixing later, we simply make them require the
|
||||||
|
# nix-command experimental features --- it so happens that the commands we wish
|
||||||
|
# stabilizing to do not need them anyways.
|
||||||
|
for arg in '--print-build-logs' '--offline' '--refresh'; do
|
||||||
|
nix --experimental-features 'nix-command' "$arg" --help
|
||||||
|
! nix --experimental-features '' "$arg" --help
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue