mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
Accept empty directories
This commit is contained in:
parent
fa88f71520
commit
a37436d792
2 changed files with 5 additions and 2 deletions
|
@ -107,7 +107,7 @@ FlakeRef::FlakeRef(const std::string & uri, bool allowRelative)
|
|||
throw Error("invalid Git ref '%s'", value);
|
||||
ref = value;
|
||||
} else if (name == "dir") {
|
||||
if (!std::regex_match(value, subDirRegex2))
|
||||
if (value != "" && !std::regex_match(value, subDirRegex2))
|
||||
throw Error("flake '%s' has invalid subdirectory '%s'", uri, value);
|
||||
subdir = value;
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue