Make sure info.ca tag bit is set in nix add-to-store

This commit is contained in:
John Ericson 2020-06-04 20:33:28 +00:00
parent 53bc8ff152
commit 574d5460f0

View file

@ -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 };