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

Compare zip files containing jars reporting change when nothing is changed #34

Open
debraj-manna opened this issue Feb 10, 2018 · 0 comments

Comments

@debraj-manna
Copy link

debraj-manna commented Feb 10, 2018

I am using pkgdiff to compare two zip files containing multiple jars. One of the jar is build (dedup-0.001-SNAPSHOT.jar) and rest are downloaded from maven repo and then all are added in zip as part of maven build. pkgdiff is reporting change when there is nothing changed in dedup-0.001-SNAPSHOT.jar

dmanna-m01:es-plugins dmanna$ pkgdiff  ~/Desktop/hbase-co/1/dedup-0.001-SNAPSHOT.zip ~/Desktop/hbase-co/2/dedup-0.001-SNAPSHOT.zip
reading packages ...
comparing packages ...
creating report ...
result: CHANGED (0.000002%)
report: pkgdiff_reports/dedup/0.001-SNAPSHOT_to_0.001-SNAPSHOT/changes_report.html

The detailed report is empty.

dmanna-m01:details dmanna$ pwd
/Users/dmanna/code/github/vnera/main/es-plugins/pkgdiff_reports/dedup/0.001-SNAPSHOT_to_0.001-SNAPSHOT/details
dmanna-m01:details dmanna$ ls
dmanna-m01:details dmanna$

screen shot 2018-02-10 at 10 32 56 pm

The surprising part is if I unzip and then compare the jar which is reported as different then pkgdiff reports that the there is no change.

dmanna-m01:hbase-co dmanna$ pkgdiff 1/dedup-0.001-SNAPSHOT/dedup-0.001-SNAPSHOT.jar 2/dedup-0.001-SNAPSHOT/dedup-0.001-SNAPSHOT.jar
reading packages ...
comparing packages ...
creating report ...
result: UNCHANGED
report: pkgdiff_reports/dedup/0.001-SNAPSHOT_to_0.001-SNAPSHOT/changes_report.html
dmanna-m01:hbase-co dmanna$

Is this some issue on pkgdiff ? How can I know what exactly is differing in dedup-0.001-SNAPSHOT.jar when it is part of zip file?

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