Skip to content

Preserve permissions when unpacking node tarballs#230

Merged
1111mp merged 1 commit intotaurifrom
codex/fix-execute-permissions-for-downloaded-node
Apr 8, 2026
Merged

Preserve permissions when unpacking node tarballs#230
1111mp merged 1 commit intotaurifrom
codex/fix-execute-permissions-for-downloaded-node

Conversation

@1111mp
Copy link
Copy Markdown
Owner

@1111mp 1111mp commented Apr 8, 2026

Motivation

  • Ensure extracted node tarballs retain their original filesystem permissions when unpacked to the destination directory.

Description

  • Replace use of tokio_tar::Archive with ArchiveBuilder and initialize the tar reader via ArchiveBuilder::new(decoded).set_preserve_permissions(true).build() (also update the import) so file permissions are preserved during extraction.

Testing

  • Ran cargo test -p get-node and unit tests completed successfully.

Codex Task

@1111mp 1111mp merged commit b97e66f into tauri Apr 8, 2026
@1111mp 1111mp deleted the codex/fix-execute-permissions-for-downloaded-node branch April 8, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant