mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
* Support singleton values and nested lists again in `args', but print
a warning.
This commit is contained in:
parent
2132d9ddeb
commit
547b119f25
2 changed files with 9 additions and 8 deletions
|
@ -44,13 +44,10 @@ Path makeRootName(const Path & gcRoot, int & counter)
|
|||
|
||||
void printGCWarning()
|
||||
{
|
||||
static bool warned = false;
|
||||
if (!warned) {
|
||||
printMsg(lvlInfo,
|
||||
"warning: you did not specify `--add-root'; "
|
||||
"the result might be removed by the garbage collector");
|
||||
warned = true;
|
||||
}
|
||||
static bool haveWarned = false;
|
||||
warnOnce(haveWarned,
|
||||
"warning: you did not specify `--add-root'; "
|
||||
"the result might be removed by the garbage collector");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue