What's the story of build reproducibility of snaps?

I made empty snap that is being automatically rebuilt every time on CI/CD run. Reproducible builds may help avoid new releases if package contents didn’t change.

I decided to see how these empty snaps differ. First I downloaded all my snaps history.

Then I used https://diffoscope.org/ to compare two latest snaps (this forum does not support attachments) and here is the result I get.

image

The only difference is the timestamp that is repeated four times through the file.

✗ unsquashfs -s yakshaveinc_73.snap
Found a valid SQUASHFS 4:0 superblock on yakshaveinc_73.snap.
Creation or last append time Tue May 26 20:27:38 2020
...
✗ unsquashfs -s yakshaveinc_74.snap
Found a valid SQUASHFS 4:0 superblock on yakshaveinc_74.snap.
Creation or last append time Wed May 27 14:25:37 2020
...
1 Like