-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Check the checksum after download #36
Comments
Hmm, this should be easy to add, but I can't find any way to make bin-wrapper not delete the dist file so that we can check the checksum. |
I'll do it this month. |
I found that is not easy to add checksum validation as long as hugo-bin depends on bin-wrapper that have no 'downloaded' (before Or I'll see if it's possible to expose before decompress event from bin-wrapper. |
@satoshun00: this might give you some ideas https://github.com/nikku/hugo-cli |
I rebased and updated https://github.com/fenneclab/hugo-bin/compare/feat/checksum and it works. My thoughts:
Any help is welcome 🙂 |
ref: #32 (comment)
actual:
require('crypto').createHash('sha256').update(file).digest('hex')
expected: https://github.com/gohugoio/hugo/releases/download/v0.31/hugo_0.31_checksums.txt
The text was updated successfully, but these errors were encountered: