Skip to content

SHA-256 sum of json-3.10.5.tar.xz changes over time (but not the content itself) #3281

@5balls

Description

@5balls

I noticed when running my build toolchain, that the md5sums of this file changed. I could extract an old file from a docker image and confirm this with a recently downloaded version of the file also with SHA-256. The archive contents itself are identical.

What is the issue you have?

I don't necessarily consider it a bug, because the expected behaviour (md5sums or SHA-256 sums of archive remaining constant) is not promised anywhere but maybe this is an artifact of the build process, which can be fixed.

The equivalent zip file does seem to keep the SHA-256 sum I guess - because it is in the description of the release and did not change since the release I think. So maybe something is different about the creation of this zip file (maybe rerun of some github action in case of .tar.xz file involved).

Please describe the steps to reproduce the issue.

  1. wget https://github.com/nlohmann/json/releases/download/v3.10.5/json-3.10.5.tar.xz
  2. sha256sum json-3.10.5.tar.xz > sha256sum1.txt
  3. wait some time (unknown amount. maybe a week)
  4. wget https://github.com/nlohmann/json/releases/download/v3.10.5/json-3.10.5.tar.xz
  5. sha256sum json-3.10.5.tar.xz > sha256sum2.txt
  6. diff sha256sum1.txt sha256sum2.txt

Can you provide a small but working code example?

What is the expected behavior?

SHA-256 sum of release file json-3.10.5.tar.xz does not change.

And what is the actual behavior instead?

SHA-256 sum of release file json-3.10.5.tar.xz does change over time.

Which compiler and operating system are you using?

  • Compiler: clang
  • Operating system: Debian 11 (stable) & Debian 11 (stable) in docker container

Which version of the library did you use?

  • latest release version 3.10.5
  • other release - please state the version: ___
  • the develop branch

If you experience a compilation error: can you compile and run the unit tests?

  • yes
  • no - please copy/paste the error message below

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions