Skip to content

Conversation

@jackye1995
Copy link
Contributor

Fix 2 issues found during release:

  1. checksum uses absolute path, but should just use the relative path
  2. gpg command order is wrong, causing the key configuration to be not respected

@jackye1995 jackye1995 requested a review from kbendick January 28, 2022 16:52
@github-actions github-actions bot added the INFRA label Jan 28, 2022
gpg --detach-sig $keyopt --armor --output ${projectdir}/${tarball}.asc ${projectdir}/$tarball
shasum -a 512 ${projectdir}/$tarball > ${projectdir}/${tarball}.sha512
gpg $keyopt --armor --output ${projectdir}/${tarball}.asc --detach-sig ${projectdir}/$tarball
shasum -a 512 $tarball > ${projectdir}/${tarball}.sha512
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if there is a better way to fix this, currently the script kind-of assumes you can run it not in the project root directory. But this would break that assumption. But I cannot find a way to avoid doing this. Maybe I just overlooked some flag?

Another way is to create the file and then remove the projectdir part of the path. But that seems to be over-complicating things a lot.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine to run in the project root directory.

@rdblue rdblue merged commit 50b612e into apache:master Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants