Skip to content

Commit e304d3e

Browse files
committed
Fix GPG verify path for staged release artifacts
Use absolute artifact paths in the GPG verification step of devops/release/cloudberry-release.sh. Previously, the script verified SHA-512 using an absolute path but called `gpg --verify` with relative file names. When running with `--repo` from a different working directory, this could fail with "No such file or directory" even though the `.asc` file existed in the artifacts directory. This change aligns the GPG verify command with the SHA-512 check by verifying: $ARTIFACTS_DIR/${TAR_NAME}.asc against: $ARTIFACTS_DIR/$TAR_NAME No behavior change for successful local runs besides making path resolution robust.
1 parent 045dc52 commit e304d3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devops/release/cloudberry-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ section "Staging release: $TAG"
677677
section "Verifying GPG Signature ($ARTIFACTS_DIR/${TAR_NAME}.asc) Release Artifact"
678678

679679
if [[ "$SKIP_SIGNING" != true ]]; then
680-
gpg --verify "${TAR_NAME}.asc" "$TAR_NAME"
680+
gpg --verify "$ARTIFACTS_DIR/${TAR_NAME}.asc" "$ARTIFACTS_DIR/$TAR_NAME"
681681
else
682682
echo "INFO: Signature verification skipped (--skip-signing). Signature is only available when generated via this script."
683683
fi

0 commit comments

Comments
 (0)