Repository navigation
Shading often corrupts non-code metadata in META-INF/MANIFEST.mf - #1762
Merged
Merged
Conversation
suztomo
reviewed
Oct 29, 2020
| - Shading often corrupts non-code metadata in META-INF/MANIFEST.mf and other locations. | ||
| For instance, service entries under `META-INF/services` can easily need | ||
| special effort to be merged because the entries are located in the same place | ||
| for every jar. |
Contributor
There was a problem hiding this comment.
Suggested change
| for every jar. | |
| for every JAR file. |
https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html
"JAR" for the files. "jar" for the command.
Comment on lines
26
to
27
| For instance, service entries under `META-INF/services` can easily need | ||
| special effort to be merged because the entries are located in the same place |
Contributor
There was a problem hiding this comment.
"can easily need special effort to be merged" is difficult to read. Can you make it active voice?
suztomo
approved these changes
Oct 30, 2020
| - Shading often corrupts non-code metadata in META-INF/MANIFEST.mf and other locations. | ||
| For instance, service entries under `META-INF/services` are hard | ||
| to merge because the entries are located in the same place | ||
| for every JAR file. |
Contributor
There was a problem hiding this comment.
(minor) Not every JAR file has META-INF/services.
Contributor
Author
There was a problem hiding this comment.
Yes, that's one example of the sorts of problems that can happen. Not every shading will have this problem, or indeed any problem with metadata, but it can crop up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@suztomo Inspired by https://github.com/googleapis/gapic-generator-java/issues/1313