mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
Fix assertion failure in FlakeRef::to_string()
This commit is contained in:
parent
6e4210d8ce
commit
46cb15df9b
4 changed files with 5 additions and 3 deletions
|
@ -128,7 +128,7 @@ std::string FlakeRef::to_string() const
|
|||
}
|
||||
|
||||
else if (auto refData = std::get_if<FlakeRef::IsGit>(&data)) {
|
||||
assert(ref || !rev);
|
||||
assert(!rev || ref);
|
||||
string = refData->uri;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue