mirror of
https://github.com/NixOS/nix.git
synced 2025-12-01 06:31:00 +01:00
Correct FIXMEs in libfetchers
This commit is contained in:
parent
c2e7f7a712
commit
274a8136fb
4 changed files with 5 additions and 7 deletions
|
|
@ -35,8 +35,7 @@ std::unique_ptr<Input> inputFromAttrs(const Attrs & attrs)
|
|||
auto res = inputScheme->inputFromAttrs(attrs2);
|
||||
if (res) {
|
||||
if (auto narHash = maybeGetStrAttr(attrs, "narHash"))
|
||||
// FIXME: require SRI hash.
|
||||
res->narHash = newHashAllowEmpty(*narHash, {});
|
||||
res->narHash = Hash::fromSRI(*narHash);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue