This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-go.git
The following commit(s) were added to refs/heads/main by this push:
new 950ed419 chore(dev/release): filter out non numeric go releases (rc's
and beta's) when finding latest go (#968)
950ed419 is described below
commit 950ed41903b75fe842b6e255625f375df405953d
Author: Raúl Cumplido <[email protected]>
AuthorDate: Tue Jul 21 17:39:52 2026 +0200
chore(dev/release): filter out non numeric go releases (rc's and beta's)
when finding latest go (#968)
### Rationale for this change
When running the release verification script without a local go version
it currently might download RC or Beta releases. We should test
verification with Released go versions.
### What changes are included in this PR?
Add a filter to force only numeric releases. Filtering releases for go
with rc or beta suffixes.
### Are these changes tested?
Yes I tested this locally, prior to the issue it downloaded `+
go_version=1.27rc2` after the fix it downloaded `+ go_version=1.26.5`
### Are there any user-facing changes?
No
Closes https://github.com/apache/arrow-go/issues/967
---
dev/release/verify_rc.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/release/verify_rc.sh b/dev/release/verify_rc.sh
index c67bbe9c..e53ba328 100755
--- a/dev/release/verify_rc.sh
+++ b/dev/release/verify_rc.sh
@@ -148,7 +148,7 @@ latest_go_version() {
curl \
"${options[@]}" \
https://api.github.com/repos/golang/go/git/matching-refs/tags/go |
- jq -r ' .[] | .ref' |
+ jq -r '.[] | .ref | select(test("^refs/tags/go[0-9]+(\\.[0-9]+){1,2}$"))' |
sort -V |
tail -1 |
sed 's,refs/tags/go,,g'