Open michaelprice232 opened 9 months ago
@relu is refactoring the checksum code in #307 but it looks like it has the same issue based on the checksum file I saw in his fork. I'll open a issue in the action they are using.
I opened an issue but it looks like the action is not maintained based on the open PR that has been around for months. If the maintainer does not respond soon I would switch back to generating the checksum manually.
The maintainer said:
Hi,
I went through and updated everything. I did a manual test with some files in the local repos and the checksums matched. Let me know if the issue persists.
Pulling into #307 and retesting sounds good! Apologies I got the sha generation files wrong, thanks for fixing this!
Re-opening as the checksum change was reverted in #332.
Since a recent PR to move away from using a missing GH Action - https://github.com/transcend-io/terragrunt-atlantis-config/pull/305 - it appears the release checksum files are in an invalid state.
When attempting to use CLI tools such as
sha512sum
to validate the signatures they are failing, reporting the checksums do not match.It appears there are 2 breaking changes which have been introduced since release
v1.17.3
:Example previous (working) format:
Example new (not working format):
Feels like we need to update these 2 lines to add in the extra whitespace character and fix issue 1. I was able to get the correct format by adding in an extra section to the awk command (I am not an awk expert so didn't want to submit a PR as expect it isn't the cleanest solution):
find "$BUILD_DIR" -type f -exec sha512sum {} + | awk -v build_dir="$BUILD_DIR" '{sub("^"build_dir"/", ""); print $1,"",$2}' > SHA512SUMS
With regards to issue 2 - we could refactor our internal build pipelines to use the new prefix, but with it being a breaking change I thought I'd call it out in case you wanted to revert to the previous (pre v1.17.3) behaviour.
I have been using
sha512sum -c SHA512SUMS
to test locally.cc @dmattia (it looks like you were involved in the original change)