Skip to content
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

*.go: move the carrierd archive/tar to internal/ #79

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

vbatts
Copy link
Owner

@vbatts vbatts commented Jan 28, 2025

The feature of golang having source in a project path with "internal" makes the code only able to be imported by the project itself.
https://docs.google.com/document/d/1e8kOo3r51b2BWtTs_1uADIA5djfXhPT36s6eHVRIvaU/edit?tab=t.0

Since we have this carried version of archive/tar with our byte accounting patches, it is also means the version of archive/tar has not kept up with upstream.

our tar-split libraries do not even utilize all the function calls of our carried archive/tar, so might as well limit anyone else in the world from calling them as well.

@vbatts
Copy link
Owner Author

vbatts commented Jan 28, 2025

cc @tojoos from #76 (comment) discussion

Verified

This commit was signed with the committer’s verified signature.
vbatts Vincent Batts
The feature of golang having source in a project path with "internal"
makes the code only able to be imported by the project itself.
https://docs.google.com/document/d/1e8kOo3r51b2BWtTs_1uADIA5djfXhPT36s6eHVRIvaU/edit?tab=t.0

Since we have this carried version of `archive/tar` with our byte
accounting patches, it is also means the version of archive/tar has not
kept up with upstream.

our tar-split libraries do not even utilize all the function calls of
our carried archive/tar, so might as well limit anyone else in the world
from calling them as well.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
@tojoos
Copy link

tojoos commented Jan 29, 2025

@vbatts Yeah, this would be great to limit potential issues with components that are not used by project itself and shouldn't be used by anyone importing vbatts. This way potential internal/archive/tar/writer.go will not be used. I like this change, thank you!

@vbatts vbatts merged commit 605093c into main Jan 29, 2025
6 checks passed
@vbatts vbatts deleted the make_internal branch January 29, 2025 15:10
vbatts added a commit that referenced this pull request Jan 29, 2025

Verified

This commit was signed with the committer’s verified signature.
vbatts Vincent Batts
rev'ing a Y stream version because this release only has the change of
making the forked version of `archive/tar` now an internal library.

Since tar-split is not even using _all_ the logic in these libraries,
might as well limit folks ability to import from this aging code.

Reference: #79

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
@vbatts vbatts mentioned this pull request Jan 29, 2025
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.

None yet

2 participants