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
Upload single sha256sums file for dist build #266
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question around collecting the SHA sums in one file, but other than that good idea.
@@ -61,4 +59,5 @@ dist: | |||
@$(MAKE) -f Makefile ghostunnel.man | |||
@mv ghostunnel.man "${CURRENT_DIR}/dist/ghostunnel-${VERSION}.man" | |||
@$(MAKE) -f "${MKFILE_PATH}" -j1 build | |||
@cd "${CURRENT_DIR}/dist/" && sha256sum ghostunnel-* > sha256sums.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this actually append instead of override?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should overwrite, since I used >
(as opposed to >>
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, to be clear, we want to overwrite here. At this point in the script all binaries have been created and we sha256sum them all at once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good context, yes this is exactly what I was wondering here.
Better than having lots of small files for each binary, makes the release a bit cleaner. I did this for the v1.5.1 release to patch the recent Go CVE, this PR is the cherry-pick on master.