Skip to content

tar: Remove dependency on Foundation #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2025
Merged

Conversation

euanh
Copy link
Collaborator

@euanh euanh commented Mar 25, 2025

Motivation

Libraries should have as few dependencies as possible. Tar only depends on Foundation because of a convenience wrapper function which can easily be handled in the caller.

Modifications

  • Remove the public func tar(_ data: Data, filename: String) throws -> [UInt8] wrapper

Result

No functional change to containertool. Tar no longer depends on Foundation.

Test Plan

Existing tests continue to pass.

@euanh euanh merged commit 9016863 into apple:main Mar 25, 2025
20 checks passed
@euanh euanh deleted the tar-foundation branch March 25, 2025 17:19
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