nix/src
Bryan Lai 03eb7111fa libutil/url: fix git+file:./ parse error
Previously, the "file:./" prefix was not correctly recognized in
fixGitURL; instead, it was mistaken as a file path, which resulted in a
parsed url of the form "file://file:./".

This commit fixes the issue by properly detecting the "file:" prefix.
Note, however, that unlike "file://", the "file:./" URI is _not_
standardized, but has been widely used to referred to relative file
paths. In particular, the "git+file:./" did work for nix<=2.18, and was
broken since nix 2.19.0.

Finally, this commit fixes the issue completely for the 2.19 series, but
is still inadequate for the 2.20 series due to new behaviors from the
switch to libgit2. However, it does improve the correctness of parsing
even though it is not yet a complete solution.

(cherry picked from commit 8594f3cd5a)
2024-06-04 08:27:12 +00:00
..
build-remote build-remote: fix format string shenanigans 2024-03-26 13:35:06 +00:00
libcmd :print strings directly in nix repl 2024-03-09 18:13:08 -08:00
libexpr builtins.addDrvOutputDependencies: fix commentary 2024-03-29 10:56:48 +00:00
libfetchers Handle zip files containing symlinks 2024-05-15 20:07:38 +00:00
libmain :quit in the debugger should quit the whole program 2024-02-20 10:01:13 -08:00
libstore nix shell: Handle output paths that are symlinks 2024-04-17 13:25:06 +00:00
libutil libutil/url: fix git+file:./ parse error 2024-06-04 08:27:12 +00:00
nix nix shell: Handle output paths that are symlinks 2024-04-17 13:25:06 +00:00
nix-build Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-channel Say how many channels were unpacked 2024-02-20 19:17:18 -05: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 15:20:54 +00: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 Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00