Open jekor opened 3 years ago
This can trigger when unpacking repacked channel tarballs. In nixpkgs, lib/tests/modules/disable-recursive/bar.nix
and lib/tests/modules/disable-recursive/foo.nix
are identical, and so get linked together when auto-optimise-store = true
. If a nixpkgs tarball is built from a store path, the resulting tarball cannot be unpacked again. A workaround is to invoke tar with --hard-dereference
when repacking.
I marked this as stale due to inactivity. → More info
Still a problem.
Still relevant
Describe the bug
When tar archives contain hard links to other files in the archive, they will fail to extract. The same tar archives extract successfully on earlier Nix versions.
Steps To Reproduce
nix flake list-inputs
The same error is reproducible with
fetchTarball
.Expected behavior
Nix 2.3.6 extracts the tar archive successfully.
nix-env --version
outputnix (Nix) 3.0pre20200829_f156513
Also originally tested with the same error on nix (Nix) 2.4pre20200721_ff314f1