1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

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
commit aa438b8fba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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