From 574d5460f02c46e9e5bcca93a14ccf782cb2c8f8 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 4 Jun 2020 20:33:28 +0000 Subject: Make sure info.ca tag bit is set in `nix add-to-store` --- src/nix/add-to-store.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc index 3162e0c62..e6f6ef27b 100644 --- a/src/nix/add-to-store.cc +++ b/src/nix/add-to-store.cc @@ -48,10 +48,10 @@ struct CmdAddToStore : MixDryRun, StoreCommand ValidPathInfo info(store->makeFixedOutputPath(FileIngestionMethod::Recursive, narHash, *namePart)); info.narHash = narHash; info.narSize = sink.s->size(); - *info.ca = FileSystemHash { + info.ca = std::optional { FileSystemHash { FileIngestionMethod::Recursive, info.narHash, - }; + } }; if (!dryRun) { auto source = StringSource { *sink.s }; -- cgit v1.2.3