aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/local-derivation-goal.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-07-21 13:46:53 +0200
committerGitHub <noreply@github.com>2023-07-21 13:46:53 +0200
commit7ac24d952545637b6af2d60852bdd2750621b504 (patch)
tree01decd818267cfd79c9fe63e594ed3a62336c0d6 /src/libstore/build/local-derivation-goal.cc
parent85d0eb63165e7d7f441fe3dd94bb548a40502e52 (diff)
parent903700c5e168e2ab5bd6bee5e09b5908cb2908d6 (diff)
Merge pull request #8650 from obsidiansystems/content-address-simpler
Simplify `ContentAddress`
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-rw-r--r--src/libstore/build/local-derivation-goal.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index 2935b9da9..7e9f6c100 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -2540,16 +2540,16 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs()
},
[&](const DerivationOutput::CAFixed & dof) {
- auto wanted = dof.ca.getHash();
+ auto & wanted = dof.ca.hash;
auto newInfo0 = newInfoFromCA(DerivationOutput::CAFloating {
- .method = dof.ca.getMethod(),
+ .method = dof.ca.method,
.hashType = wanted.type,
});
/* Check wanted hash */
assert(newInfo0.ca);
- auto got = newInfo0.ca->getHash();
+ auto & got = newInfo0.ca->hash;
if (wanted != got) {
/* Throw an error after registering the path as
valid. */