Files
nix/tests/functional/lang/eval-fail-fetchTree-relative-path.nix
Robert Hensing 23a7178eb4 fetchTree: reject relative file: paths for tarballs
Relative paths like `file:./foo.tar.gz` have never worked for tarballs
because curl rejects relative file: URLs. Previously this resulted in
cryptic curl errors. Now we reject them early with a clear message
explaining that relative paths are not supported because there is no
defined base directory to resolve them against.

See https://github.com/NixOS/nix/issues/12281
2026-01-12 03:31:42 +01:00

2 lines
49 B
Nix

builtins.fetchTree "file:./relative-path.tar.gz"