Merge pull request #10414 from edolstra/remove-downloadFile-locked

downloadFile(): Remove the "locked" (aka "immutable") flag
This commit is contained in:
John Ericson
2024-04-12 17:23:53 -04:00
committed by GitHub
6 changed files with 11 additions and 13 deletions

View File

@@ -473,7 +473,7 @@ static void fetch(EvalState & state, const PosIdx pos, Value * * args, Value & v
auto storePath =
unpack
? fetchToStore(*state.store, fetchers::downloadTarball(*url).accessor, FetchMode::Copy, name)
: fetchers::downloadFile(state.store, *url, name, (bool) expectedHash).storePath;
: fetchers::downloadFile(state.store, *url, name).storePath;
if (expectedHash) {
auto hash = unpack