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

Inconsistent merge strategy logging vs counts #481

Open
frosforever opened this issue Oct 20, 2022 · 0 comments
Open

Inconsistent merge strategy logging vs counts #481

frosforever opened this issue Oct 20, 2022 · 0 comments

Comments

@frosforever
Copy link

Using version 2.0.0 results in inconsistent merge strategy logging vs displayed counts. An example:

[info] 6 file(s) merged using strategy 'Concat' (Run the task at debug level to see the details)
[debug] 
[debug] Merge Strategy Used: Concat
[debug] Resulting entries:
[debug]   Jar entry = META-INF/services/org.apache.poi.sl.draw.ImageRenderer
[debug] Merge origins:
[debug]   Jar name = poi-ooxml-5.2.2.jar, jar org = org.apache.poi, entry target = META-INF/services/org.apache.poi.sl.draw.ImageRenderer
[debug]   Jar name = poi-5.2.2.jar, jar org = org.apache.poi, entry target = META-INF/services/org.apache.poi.sl.draw.ImageRenderer
[debug] 
[debug] Merge Strategy Used: Concat
[debug] Resulting entries:
[debug]   Jar entry = META-INF/services/org.apache.poi.ss.usermodel.WorkbookProvider
[debug] Merge origins:
[debug]   Jar name = poi-ooxml-5.2.2.jar, jar org = org.apache.poi, entry target = META-INF/services/org.apache.poi.ss.usermodel.WorkbookProvider
[debug]   Jar name = poi-5.2.2.jar, jar org = org.apache.poi, entry target = META-INF/services/org.apache.poi.ss.usermodel.WorkbookProvider
[debug] 
[debug] Merge Strategy Used: Concat
[debug] Resulting entries:
[debug]   Jar entry = META-INF/services/org.apache.poi.extractor.ExtractorProvider
[debug] Merge origins:
[debug]   Jar name = poi-ooxml-5.2.2.jar, jar org = org.apache.poi, entry target = META-INF/services/org.apache.poi.extractor.ExtractorProvider
[debug]   Jar name = poi-5.2.2.jar, jar org = org.apache.poi, entry target = META-INF/services/org.apache.poi.extractor.ExtractorProvider

The logging prints 6 file(s) and yet only 3 files were merged using Concat. If run with an earlier version (I tried with 0.14.10 but I haven't dug in to when exactly it started) it correctly states 'concat' was applied to 3 files.

Apologies is this is a known issue or if this is not the correct repo to submit this issue.

Thanks in advance for reviewing and maintaining sbt-assembly!

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

No branches or pull requests

1 participant