mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 05:56:03 +01:00
Merge branch 'path-info' into ca-drv-exotic
This commit is contained in:
commit
848b0832b5
13 changed files with 38 additions and 30 deletions
|
|
@ -211,10 +211,16 @@ Hash getContentAddressHash(const ContentAddress & ca)
|
|||
ContentAddressWithReferences caWithoutRefs(const ContentAddress & ca) {
|
||||
return std::visit(overloaded {
|
||||
[&](const TextHash & h) -> ContentAddressWithReferences {
|
||||
return TextInfo { h, {}};
|
||||
return TextInfo {
|
||||
h,
|
||||
.references = {},
|
||||
};
|
||||
},
|
||||
[&](const FixedOutputHash & h) -> ContentAddressWithReferences {
|
||||
return FixedOutputInfo { h, {}};
|
||||
return FixedOutputInfo {
|
||||
h,
|
||||
.references = {},
|
||||
};
|
||||
},
|
||||
}, ca);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue