mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
No inheritance for TextInfo
and FixedOutputInfo
This commit is contained in:
parent
85bb865d20
commit
d381248ec0
17 changed files with 33 additions and 31 deletions
|
@ -30,7 +30,7 @@ std::optional<ContentAddressWithReferences> ValidPathInfo::contentAddressWithRef
|
|||
[&](const TextHash & th) -> ContentAddressWithReferences {
|
||||
assert(references.count(path) == 0);
|
||||
return TextInfo {
|
||||
th,
|
||||
.hash = th,
|
||||
.references = references,
|
||||
};
|
||||
},
|
||||
|
@ -42,7 +42,7 @@ std::optional<ContentAddressWithReferences> ValidPathInfo::contentAddressWithRef
|
|||
refs.erase(path);
|
||||
}
|
||||
return FixedOutputInfo {
|
||||
foh,
|
||||
.hash = foh,
|
||||
.references = {
|
||||
.others = std::move(refs),
|
||||
.self = hasSelfReference,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue