Skip to content

Switch testsuite to use GNU tar headers#16774

Closed
ehuss wants to merge 1 commit into
rust-lang:masterfrom
ehuss:fix-tar-long-symlink
Closed

Switch testsuite to use GNU tar headers#16774
ehuss wants to merge 1 commit into
rust-lang:masterfrom
ehuss:fix-tar-long-symlink

Conversation

@ehuss
Copy link
Copy Markdown
Contributor

@ehuss ehuss commented Mar 21, 2026

This updates the testsuite's publishing code to use GNU tar headers instead of USTAR. We are having problems with the new symlink_and_directory test in rust-lang/rust because the target directory is longer than typical, and it is causing a failure. USTAR symlink entries are restricted to 100 bytes long. GNU is capable of using the @LongLink extension which does not have a limit.

Cargo's own publishing code was switched to GNU in Rust 1.46 (2020) via #8453.

I double checked the old tar 0.4.44, and the test fails as expected.

This updates the testsuite's publishing code to use GNU tar headers
instead of USTAR. We are having problems with the new
`symlink_and_directory` test in rust-lang/rust because the target
directory is longer than typical, and it is causing a failure. USTAR
symlink entries are restricted to 100 bytes long. GNU is capable of
using the `@LongLink` extension which does not have a limit.

Cargo's own publishing code was switched to GNU in Rust 1.46 (2020) via
rust-lang#8453.

I double checked the old tar 0.4.44, and the test fails as expected.
@rustbot rustbot added A-testing-cargo-itself Area: cargo's tests S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 21, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 21, 2026

r? @epage

rustbot has assigned @epage.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from epage, weihanglo

@ehuss
Copy link
Copy Markdown
Contributor Author

ehuss commented Mar 21, 2026

Well, this isn't going to work since the package files change based on the directory length.

@ehuss ehuss closed this Mar 21, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testing-cargo-itself Area: cargo's tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants