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
2 lines
49 B
Nix
2 lines
49 B
Nix
builtins.fetchTree "file:./relative-path.tar.gz"
|