aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-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/local-store.cc
parentfd21f9d76e53228acbbbfc05726059d48243f6d2 (diff)
Explain various `.self = false,`
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 0072a16dc..7fb312c37 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -1328,6 +1328,7 @@ StorePath LocalStore::addToStoreFromDump(Source & source0, std::string_view name
},
.references = {
.others = references,
+ // caller is not capable of creating a self-reference, because this is content-addressed without modulus
.self = false,
},
};