aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:36:25 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:36:25 +0000
commit03f4fafc27bd9f8def1df6a229a17fc2c3f0e0a0 (patch)
treeac78cb209f336e5c3cd1d145e2ed1444ba2e31c2 /src/libexpr/primops.cc
parentdf707d05d1671677efe5935356959722c4cc3a02 (diff)
parent088dcea0e80bf2861fd9d6b808e76a1669b7122a (diff)
Merge remote-tracking branch 'upstream/master' into misc-ca
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 391ad5e03..a9b5a10c9 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);
@@ -1201,7 +1201,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);