Files
Eric Huss c852cccaa5 Fix symlink_and_directory when running in a long target dir name
This fixes the `symlink_and_directory` test which is failing on
rust-lang/rust because it runs in a longer target directory name. This
causes the path to exceed the limit of 100 characters for a USTAR tar
header.

The fix is to just use a directory from the `tempfile` crate instead of
trying to create one inside the test sandbox. I believe this should be
reliably under 100 characters.

Unfortunately we cannot switch to GNU tar headers which dynamically
switch to using GNU extensions for long paths because it would cause the
package checksums to change based on whether or not the path causes it
to exceed the limit.

I double checked the old tar 0.4.44, and the test fails as expected.
2026-03-20 17:50:57 -07:00
..
2026-03-06 06:24:36 -08:00