aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/binary-cache-store.cc
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2023-04-17 09:15:11 -0400
committerGitHub <noreply@github.com>2023-04-17 09:15:11 -0400
commit537e8719f2ca8e18312bd8dcc37124fb1b25d4d3 (patch)
tree580adbbcd28a70eff1eaddd87c76b573bcb3ed3e /src/libstore/binary-cache-store.cc
parentfd21f9d76e53228acbbbfc05726059d48243f6d2 (diff)
Explain various `.self = false,`
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r--src/libstore/binary-cache-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc
index 628e9b9db..fcd763a9d 100644
--- a/src/libstore/binary-cache-store.cc
+++ b/src/libstore/binary-cache-store.cc
@@ -315,6 +315,7 @@ StorePath BinaryCacheStore::addToStoreFromDump(Source & dump, std::string_view n
},
.references = {
.others = references,
+ // caller is not capable of creating a self-reference, because this is content-addressed without modulus
.self = false,
},
},
@@ -433,6 +434,7 @@ StorePath BinaryCacheStore::addToStore(
},
.references = {
.others = references,
+ // caller is not capable of creating a self-reference, because this is content-addressed without modulus
.self = false,
},
},