Fix fetchurl/fetchTarball
This commit is contained in:
parent
1c88e100e7
commit
c1323b53e3
|
@ -1515,7 +1515,8 @@ void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v,
|
|||
} else
|
||||
url = state.forceStringNoCtx(*args[0], pos);
|
||||
|
||||
mkString(v, downloadFileCached(url, unpack), PathSet({url}));
|
||||
Path res = downloadFileCached(url, unpack);
|
||||
mkString(v, res, PathSet({res}));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue