Skip to content

use --no-same-owner to fix tar errors#1002

Open
kybe236 wants to merge 1 commit intoipetkov:masterfrom
kybe236:master
Open

use --no-same-owner to fix tar errors#1002
kybe236 wants to merge 1 commit intoipetkov:masterfrom
kybe236:master

Conversation

@kybe236
Copy link
Copy Markdown

@kybe236 kybe236 commented Mar 28, 2026

Motivation

Add --no-same-owner to the tar command to fix ownership errors when building crates in Docker.

Without this flag, building a crate with crane can fail with errors like:
cargo-package-pin-utils> tar: .gitignore: Cannot change ownership to uid 460880, gid 5001: Invalid argument

--no-same-owner prevents tar from setting the UID to the tar archive's encoded owner.
After adding this simple flag, it compiles fine

I thought that if it works for me, I might as well make a PR.

Checklist

  • added tests to verify new behavior
  • added an example template or updated an existing one
  • updated docs/API.md (or general documentation) with changes
  • updated CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant