1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00
nix/tests
Sergei Zimmerman 47f427a172
Remove validation of URLs passed to FileTransferRequest verbatim
CURL is not very strict about validation of URLs passed to it. We
should reflect this in our handling of URLs that we get from the user
in <nix/fetchurl.nix> or builtins.fetchurl. ValidURL was an attempt to
rectify this, but it turned out to be too strict. The only good way to
resolve this is to pass (in some cases) the user-provided string verbatim
to CURL. Other usages in libfetchers still benefit from using structured
ParsedURL and validation though.

nix store prefetch-file --name foo 'https://cdn.skypack.dev/big.js@^5.2.2'
error: 'https://cdn.skypack.dev/big.js@^5.2.2' is not a valid URL: leftover
2025-10-13 22:23:26 +03:00
..
functional Remove validation of URLs passed to FileTransferRequest verbatim 2025-10-13 22:23:26 +03:00
installer Format .nix files 2025-01-24 17:04:02 +01:00
nixos fix(libfetchers): substitute fetchTarball and fetchurl 2025-10-02 19:33:02 +00:00
repl-completion.nix Format .nix files 2025-01-24 17:04:02 +01:00