diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-04 20:33:28 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-04 20:33:28 +0000 |
commit | 574d5460f02c46e9e5bcca93a14ccf782cb2c8f8 (patch) | |
tree | b084cfdec1c274bb9282d00d696c1e3595a9f266 /src/nix/add-to-store.cc | |
parent | 53bc8ff152091173e11f2bead245541e3037d769 (diff) |
Make sure info.ca tag bit is set in `nix add-to-store`
Diffstat (limited to 'src/nix/add-to-store.cc')
-rw-r--r-- | src/nix/add-to-store.cc | 4 |
1 files 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 }; |