[diffoscope] Comment should be about line endings instead of ordering difference

Aman Sharma amansha at kth.se
Thu Jan 16 22:00:49 UTC 2025


Hi Chris,


I have attached the two versions of file. Running this with diffoscope 284 yields the same comments.


```

diffoscope pom.properties.reference pom.properties.rebuild --json diff.json

```


Regards,
Aman Sharma

PhD Student
KTH Royal Institute of Technology
School of Electrical Engineering and Computer Science (EECS)
Department of Theoretical Computer Science (TCS)
<http://www.kth.se><https://www.kth.se/profile/amansha><https://www.kth.se/profile/amansha>
<https://www.kth.se/profile/amansha>https://algomaster99.github.io/
________________________________
From: Chris Lamb <chris at reproducible-builds.org>
Sent: Thursday, January 16, 2025 6:33:15 PM
To: Aman Sharma; diffoscope
Subject: Re: [diffoscope] Comment should be about line endings instead of ordering difference

Aman Sharma:

> I have attached a diffoscope output for a maven artefact. It shows that
> there is a diff in
> `META-INF/maven/ch.qos.logback/logback-access/pom.properties` at line
> 28 of JSON file and the comments explain that there are "Ordering
> differences only". However, the diff is only in the line endings and
> not in the order. The reference version only has line feed characters
> while the rebuilt version has both line feed and carriage return as
> line endings.

Could you provide these two pom.properties files or similar? That will
make it much easier to debug and create a testcase (than trying to read
the machine-readable JSON!)

Armed with that, this should be straightforward to address.


Best wishes,

--
      o
    ⬋   ⬊      Chris Lamb
   o     o     reproducible-builds.org 💠
    ⬊   ⬋
      o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20250116/93860457/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pom.properties.rebuild
Type: application/octet-stream
Size: 65 bytes
Desc: pom.properties.rebuild
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20250116/93860457/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pom.properties.reference
Type: application/octet-stream
Size: 62 bytes
Desc: pom.properties.reference
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20250116/93860457/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff.json
Type: application/json
Size: 329 bytes
Desc: diff.json
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20250116/93860457/attachment.json>


More information about the diffoscope mailing list