diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-04-19 14:48:53 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-04-19 15:00:04 -0400 |
commit | 7103c6da705c8a18fef9e8f8d404e8d0ab5082ff (patch) | |
tree | 53a6fb861243b174292a5d0177fab364461d8de9 /src/libstore/content-address.cc | |
parent | aba8a8a83a89d577769a39a69e9b90e3ed0d4f82 (diff) |
Remove references from fixed output derivation ab syntax
In other words, use a plain `ContentAddress` not
`ContentAddressWithReferences` for `DerivationOutput::CAFixed`.
Supporting fixed output derivations with (fixed) references would be a
cool feature, but it is out of scope at this moment.
Diffstat (limited to 'src/libstore/content-address.cc')
-rw-r--r-- | src/libstore/content-address.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc index 8a65059e3..167f7af6c 100644 --- a/src/libstore/content-address.cc +++ b/src/libstore/content-address.cc @@ -196,6 +196,11 @@ const Hash & ContentAddress::getHash() const }, raw); } +std::string ContentAddress::printMethodAlgo() const { + return getMethod().renderPrefix() + + printHashType(getHash().type); +} + bool StoreReferences::empty() const { return !self && others.empty(); @@ -271,9 +276,4 @@ Hash ContentAddressWithReferences::getHash() const }, raw); } -std::string ContentAddressWithReferences::printMethodAlgo() const { - return getMethod().renderPrefix() - + printHashType(getHash().type); -} - } |