diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-12 18:18:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 18:18:12 +0200 |
commit | 00fa7e2205877ec34dc3021fd73db6b6ad6bf112 (patch) | |
tree | 10550a3ac2efee0d01e061f0d034caced2461c41 /src/libfetchers/fetchers.cc | |
parent | 9f736dd89d064718a378703a9557de56fdd1a734 (diff) | |
parent | ea0d29d99a400c328fa0ca05ba5e639351673ebc (diff) |
Merge pull request #3674 from matthewbauer/allow-empty-hash2
Allow empty hash in derivations
Diffstat (limited to 'src/libfetchers/fetchers.cc')
-rw-r--r-- | src/libfetchers/fetchers.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/fetchers.cc b/src/libfetchers/fetchers.cc index ca555114d..11cac4c55 100644 --- a/src/libfetchers/fetchers.cc +++ b/src/libfetchers/fetchers.cc @@ -36,7 +36,7 @@ std::unique_ptr<Input> inputFromAttrs(const Attrs & attrs) if (res) { if (auto narHash = maybeGetStrAttr(attrs, "narHash")) // FIXME: require SRI hash. - res->narHash = Hash(*narHash); + res->narHash = newHashAllowEmpty(*narHash, htUnknown); return res; } } |