release: wait for Go proxy propagation (#11219)

Allow normal post-tag proxy propagation before dispatching downstream releases, while preserving the check that prevents them from pinning the previous commit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Chris Lu
2026-09-07 21:38:49 -07:00
committed by GitHub
co-authored by Copilot
parent d997fba157
commit 213f4c5d5c
+3 -2
View File
@@ -206,8 +206,9 @@ jobs:
# The dispatched workflow pins seaweedfs with `go get -u ...@latest`, so # The dispatched workflow pins seaweedfs with `go get -u ...@latest`, so
# wait until the proxy serves the release commit as the tip. Asking for # wait until the proxy serves the release commit as the tip. Asking for
# the commit by name is what makes the proxy fetch it. # the commit by name is what makes the proxy fetch it. The proxy can
for _ in $(seq 30); do # take longer than five minutes to refresh @latest after a new tag.
for _ in $(seq 120); do
curl -sf "https://proxy.golang.org/${MODULE}/@v/${SHA}.info" >/dev/null || true curl -sf "https://proxy.golang.org/${MODULE}/@v/${SHA}.info" >/dev/null || true
TIP=$(curl -sf "https://proxy.golang.org/${MODULE}/@latest" | jq -r '.Origin.Hash // ""' || true) TIP=$(curl -sf "https://proxy.golang.org/${MODULE}/@latest" | jq -r '.Origin.Hash // ""' || true)
[ "$TIP" = "$SHA" ] && break [ "$TIP" = "$SHA" ] && break