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.
- wget https://github.com/nlohmann/json/releases/download/v3.10.5/json-3.10.5.tar.xz
- sha256sum json-3.10.5.tar.xz > sha256sum1.txt
- wait some time (unknown amount. maybe a week)
- wget https://github.com/nlohmann/json/releases/download/v3.10.5/json-3.10.5.tar.xz
- sha256sum json-3.10.5.tar.xz > sha256sum2.txt
- 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?
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.
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?
Which version of the library did you use?
developbranchIf you experience a compilation error: can you compile and run the unit tests?