boost icon indicating copy to clipboard operation
boost copied to clipboard

Feature request: SHA256 for GitHub release downloads

Open ecorm opened this issue 2 years ago • 15 comments

I'm using CMake's FetchContent to download the latest Boost release as part of my project's CMake build process. It's possible to pass an SHA256 hash to FetchContent so that it can verify the integrity of the download.

However, if I look at the assets listed in the Boost GitHub release page, there aren't any files there containing meta-information like SHA256 hashes.

I tried using the SHA256 hash available here at jfrog.io. CMake complains of SHA256 mismatch when I try using that hash:

verifying file...
[cmake]        file='/home/build/_deps/fetchboost-subbuild/fetchboost-populate-prefix/src/boost-1.84.0.tar.gz'
[cmake] -- SHA256 hash of
[cmake]     /home/build/_deps/fetchboost-subbuild/fetchboost-populate-prefix/src/boost-1.84.0.tar.gz
[cmake]   does not match expected value
[cmake]     expected: 'a5800f405508f5df8114558ca9855d2640a2de8f0445f051fa1c7c3383045724'
[cmake]       actual: '4d27e9efed0f6f152dc28db6430b9d3dfb40c0345da7342eaa5a987dde57bd95'

Of course, now I know that the hash is supposed to be 4d27e9efed0f6f152dc28db6430b9d3dfb40c0345da7342eaa5a987dde57bd95, but it would be better if that were published somewhere in an official manner.


To clarify, it's the GitHub release downloads that lack a published SHA256.

ecorm avatar Dec 18 '23 22:12 ecorm

Same problem for me.

amadou-6e avatar Dec 31 '23 16:12 amadou-6e

SHA256 checksums for the official archives are published in release notes.

Lastique avatar Apr 16 '24 00:04 Lastique

SHA256 checksums for the official archives are published in release notes.

I don't remember exactly, but I think that SHA256 only works with the jfrog download link, and not the GitHub release tarball.

ecorm avatar Apr 16 '24 00:04 ecorm

The checksums in the release notes only cover the archives on jfrog. The archives on GitHub are different and there are no published checksums for those.

Lastique avatar Apr 16 '24 00:04 Lastique

The archives on GitHub are different and there are no published checksums for those.

That's why I raised this issue. I should have made that clearer in my description.

ecorm avatar Apr 16 '24 00:04 ecorm