Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #611 Don't include release dir to generated sha256 sum. #612

Merged
merged 1 commit into from
Sep 19, 2019
Merged

Issue #611 Don't include release dir to generated sha256 sum. #612

merged 1 commit into from
Sep 19, 2019

Conversation

praveenkumar
Copy link
Member

The hashes of sha256sum.txt are referencing items in a 'release' directory.

49f30e59d1b66feb7e406ead155a2cd8b6808dc60488b7f147fc52a0fa641a51  release/crc-macos-amd64.tar.xz

It makes hard to verify directly using the sha256sum.txt file on the content.

$ sha256sum --check sha256sum.txt
sha256sum: release/crc-macos-amd64.tar.xz: No such file or directory
release/crc-macos-amd64.tar.xz: FAILED open or read
sha256sum: release/crc-linux-amd64.tar.xz: No such file or directory
release/crc-linux-amd64.tar.xz: FAILED open or read
sha256sum: release/crc-windows-amd64.zip: No such file or directory
release/crc-windows-amd64.zip: FAILED open or read
sha256sum: release/crc_virtualbox_4.1.14.crcbundle: No such file or directory
release/crc_virtualbox_4.1.14.crcbundle: FAILED open or read
sha256sum: WARNING: 4 listed files could not be read

The hashes of sha256sum.txt are referencing items in a 'release' directory.
49f30e59d1b66feb7e406ead155a2cd8b6808dc60488b7f147fc52a0fa641a51  release/crc-macos-amd64.tar.xz

It makes hard to verify directly using the sha256sum.txt file on the content.

```
$ sha256sum --check sha256sum.txt
sha256sum: release/crc-macos-amd64.tar.xz: No such file or directory
release/crc-macos-amd64.tar.xz: FAILED open or read
sha256sum: release/crc-linux-amd64.tar.xz: No such file or directory
release/crc-linux-amd64.tar.xz: FAILED open or read
sha256sum: release/crc-windows-amd64.zip: No such file or directory
release/crc-windows-amd64.zip: FAILED open or read
sha256sum: release/crc_virtualbox_4.1.14.crcbundle: No such file or directory
release/crc_virtualbox_4.1.14.crcbundle: FAILED open or read
sha256sum: WARNING: 4 listed files could not be read
```
Copy link
Contributor

@cfergeau cfergeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment, I'm fine with this change either way.


@mkdir -p $(BUILD_DIR)/crc-windows-$(CRC_VERSION)-amd64
@cp LICENSE $(DOCS_BUILD_DIR)/doc.pdf $(BUILD_DIR)/windows-amd64/crc.exe $(BUILD_DIR)/crc-windows-$(CRC_VERSION)-amd64
cd $(BUILD_DIR) && zip -r $(CURDIR)/$(RELEASE_DIR)/crc-windows-amd64.zip crc-windows-$(CRC_VERSION)-amd64
sha256sum $(RELEASE_DIR)/crc-windows-amd64.zip >> $(RELEASE_DIR)/sha256sum.txt

pushd $(RELEASE_DIR) && sha256sum * > sha256sum.txt && popd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to be strict "just in case"? crc-*-amd64.* rather than just *?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cfergeau as of now there is no other files then our artifacts there, in future if it is then we might have to change that wildcard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants