Skip to content

compare show missing reference files#189

Merged
hboutemy merged 1 commit intomasterfrom
compare-missing
Sep 28, 2025
Merged

compare show missing reference files#189
hboutemy merged 1 commit intomasterfrom
compare-missing

Conversation

@hboutemy
Copy link
Copy Markdown
Member

currently, missing reference files are reported as "size mismatch" with a diffoscope command that does not have any meaning

[INFO] --- artifact:3.6.0:compare (default-cli) @ gson-extras ---
[INFO] Reference buildinfo file not found: it will be generated from downloaded reference artifacts
[WARNING] Reference artifact not found com.google.code.gson:gson-extras:pom:2.13.2
[WARNING] Reference artifact not found com.google.code.gson:gson-extras:jar:2.13.2
[WARNING] Reference artifact not found com.google.code.gson:gson-extras:jar:sources:2.13.2
[INFO] Minimal buildinfo generated from downloaded artifacts: /tmp/gson-2.13.2/extras/target/reference/gson-extras-2.13.2.buildinfo
[ERROR] size mismatch gson-extras-2.13.2.pom: investigate with diffoscope extras/target/reference/com.google.code.gson/gson-extras-2.13.2.pom extras/pom.xml
[ERROR] size mismatch gson-extras-2.13.2.jar: investigate with diffoscope extras/target/reference/com.google.code.gson/gson-extras-2.13.2.jar extras/target/gson-extras-2.13.2.jar
[ERROR] size mismatch gson-extras-2.13.2-sources.jar: investigate with diffoscope extras/target/reference/com.google.code.gson/gson-extras-2.13.2-sources.jar extras/target/gson-extras-2.13.2-sources.jar
[ERROR] Reproducible Build output summary: 0 files ok, 3 different
[ERROR] see diff extras/target/reference/gson-extras-2.13.2.buildinfo extras/target/gson-extras-2.13.2.buildinfo
[ERROR] see also https://maven.apache.org/guides/mini/guide-reproducible-builds.html
[INFO] Reproducible Build output comparison saved to /tmp/gson-2.13.2/extras/target/gson-extras-2.13.2.buildcompare
[INFO] Aggregate buildcompare copied to /tmp/gson-2.13.2/target/gson-parent-2.13.2.buildcompare

much more useful to explicit missing reference file with info of the missing file in remote repository and where the file has been produced in the rebuild:

ERROR] missing reference file mismatch gson-extras-2.13.2.pom: investigate with wget https://repo.maven.apache.org/maven2/com/google/code/gson/gson-extras/2.13.2/gson-extras-2.13.2.pom; ls -l extras/pom.xml
[ERROR] missing reference file mismatch gson-extras-2.13.2.jar: investigate with wget https://repo.maven.apache.org/maven2/com/google/code/gson/gson-extras/2.13.2/gson-extras-2.13.2.jar; ls -l extras/target/gson-extras-2.13.2.jar
[ERROR] missing reference file mismatch gson-extras-2.13.2-sources.jar: investigate with wget https://repo.maven.apache.org/maven2/com/google/code/gson/gson-extras/2.13.2/gson-extras-2.13.2-sources.jar; ls -l extras/target/gson-extras-2.13.2-sources.jar
[ERROR] [Reproducible Builds] rebuild comparison result: 0 files match, 3 differ, 3 missing

@hboutemy hboutemy added the enhancement New feature or request label Sep 28, 2025
@hboutemy hboutemy merged commit 399a976 into master Sep 28, 2025
40 of 52 checks passed
@hboutemy hboutemy deleted the compare-missing branch September 28, 2025 21:04
@github-actions github-actions Bot added this to the 3.6.1 milestone Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant