fetchurl: check that url
is a string
Otherwise we (may) get a hard to debug issue in the tarball job, e.g. see the grandparent commit.
This commit is contained in:
parent
d601532dfc
commit
e5ec487840
@ -104,7 +104,9 @@ let
|
||||
if urls != [] && url == "" then
|
||||
(if lib.isList urls then urls
|
||||
else throw "`urls` is not a list")
|
||||
else if urls == [] && url != "" then [url]
|
||||
else if urls == [] && url != "" then
|
||||
(if lib.isString url then [url]
|
||||
else throw "`url` is not a string")
|
||||
else throw "fetchurl requires either `url` or `urls` to be set";
|
||||
|
||||
hash_ =
|
||||
|
Loading…
Reference in New Issue
Block a user