mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-08 15:41:15 +02:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user