diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-05 14:51:41 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-05 14:51:41 +0000 |
commit | 92ad550e96935d21fb24938305f5a3a7238e540e (patch) | |
tree | 53e564d25ca0699619d38e95bf6e76bca6556dfd /src/libexpr/primops.cc | |
parent | b9ebe373bbab6f19ee650ef9769ad76c32b7244d (diff) | |
parent | e561a13a5863f25c81e8abc9d235a12925fd454e (diff) |
Merge remote-tracking branch 'obsidian/misc-ca' into derivation-primop-floating-output
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 7bc424d52..9ecf99f17 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -65,7 +65,7 @@ void EvalState::realiseContext(const PathSet & context) /* For performance, prefetch all substitute info. */ StorePathSet willBuild, willSubstitute, unknown; - unsigned long long downloadSize, narSize; + uint64_t downloadSize, narSize; store->queryMissing(drvs, willBuild, willSubstitute, unknown, downloadSize, narSize); store->buildPaths(drvs); @@ -1223,7 +1223,7 @@ static void prim_path(EvalState & state, const Pos & pos, Value * * args, Value string name; Value * filterFun = nullptr; auto method = FileIngestionMethod::Recursive; - Hash expectedHash(htSHA256); + std::optional<Hash> expectedHash; for (auto & attr : *args[0]->attrs) { const string & n(attr.name); |