aboutsummaryrefslogtreecommitdiff
path: root/src/nix/make-content-addressable.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-24 22:46:27 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-25 17:53:31 +0000
commit71e4c9c505f2418084643c1a68da5c89b82038dd (patch)
tree875c3a5489b9a45ad662da27db9eefd3cf09969b /src/nix/make-content-addressable.cc
parent1722ae6ecee54e14164d215ba3d767ea6c352fc3 (diff)
WIP: store separate `hasValidPath` bool
Diffstat (limited to 'src/nix/make-content-addressable.cc')
-rw-r--r--src/nix/make-content-addressable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/make-content-addressable.cc b/src/nix/make-content-addressable.cc
index fb36fc410..5267948ee 100644
--- a/src/nix/make-content-addressable.cc
+++ b/src/nix/make-content-addressable.cc
@@ -79,7 +79,7 @@ struct CmdMakeContentAddressable : StorePathsCommand, MixJSON
ValidPathInfo info(store->makeFixedOutputPath(FileIngestionMethod::Recursive, narHash, path.name(), references, hasSelfReference));
info.references = std::move(references);
- if (hasSelfReference) info.references.insert(info.path);
+ info.hasSelfReference = std::move(hasSelfReference);
info.narHash = narHash;
info.narSize = sink.s->size();
info.ca = FixedOutputHash {