1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 13:36:02 +01:00
nix/src
Eelco Dolstra d29786f258 downloadFile(): Remove the "locked" (aka "immutable") flag
This was used in only one place, namely builtins.fetchurl with an
expected hash. Since this can cause similar issues as described
in #9814 and #9905 with the "locked" flag for fetchTarball and fetchTree,
let's just remove it.

Note that if an expected hash is given and the hash algorithm is
SHA-256, then we will never do a download anyway if the resulting
store path already exists. So removing the "locked" flag will only
cause potentially unnecessary HTTP requests (subject to the tarball
TTL) for non-SHA-256 hashes.
2024-04-08 15:56:16 +02:00
..
build-remote build-remote: fix format string shenanigans 2024-03-26 11:01:03 +03:00
libcmd Better signals interface 2024-04-05 01:38:28 -04:00
libexpr downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
libexpr-c Fix some portability issues with the new C bindings 2024-04-05 00:54:47 -04:00
libfetchers downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
libmain Better signals interface 2024-04-05 01:38:28 -04:00
libstore Merge pull request #8397 from NixLayeredStore/overlayfs-store 2024-04-07 22:57:01 -04:00
libstore-c Fix some portability issues with the new C bindings 2024-04-05 00:54:47 -04:00
libutil Merge pull request #8397 from NixLayeredStore/overlayfs-store 2024-04-07 22:57:01 -04:00
libutil-c Fix some portability issues with the new C bindings 2024-04-05 00:54:47 -04:00
nix Improve the config check output for stores that don't know about trust 2024-04-08 11:02:39 +02:00
nix-build Clean up env var logic in preparation for Windows 2024-04-04 18:17:12 -04:00
nix-channel downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Handle the case where a parent of ~/.nix-defexpr is a symlink 2024-04-03 16:46:23 +02:00
nix-instantiate Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-store Add Git object hashing to the store layer 2024-02-27 11:27:34 -05:00
resolve-system-dependencies Add unix (and linux) dirs 2024-04-02 12:55:23 -04:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00