mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-19 20:09:01 +02:00
Merge pull request #224666 from grindhold/container_underscores
check nixos-container names for underscores
This commit is contained in:
commit
39ebd395cc
|
@ -509,6 +509,12 @@ in
|
|||
for details).
|
||||
'';
|
||||
}
|
||||
{
|
||||
assertion = !lib.strings.hasInfix "_" name;
|
||||
message = ''
|
||||
Names containing underscores are not allowed in nixos-containers. Please rename the container '${name}'
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue