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

Merge jar files without unpacking them #651

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

shs96c
Copy link
Collaborator

@shs96c shs96c commented Jan 6, 2022

It's possible to create jar files that do not unpack cleanly on
a file system. For example, they can include a file named
foo/bar and another file called foo. Attempting to merge
jars by unpacking to disk and then repacking them will fail
because it's not possible to unpack cleanly.

This change does everything in-memory, without needing to create
intermediate temporary files.

It's possible to create jar files that do not unpack cleanly on
a file system. For example, they can include a _file_ named
`foo/bar` and another file called `foo`. Attempting to merge
jars by unpacking to disk and then repacking them will fail
because it's not possible to unpack cleanly.

This change does everything in-memory, without needing to create
intermediate temporary files.
@shs96c shs96c merged commit 0fe5ce5 into bazelbuild:master Jan 12, 2022
@shs96c shs96c deleted the merge-in-place branch December 9, 2022 16:50
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