From 537235c17b39b8c288e0b77c99f2652b950391cf Mon Sep 17 00:00:00 2001 From: tinqs-limited Date: Fri, 22 May 2026 18:55:00 +0100 Subject: [PATCH] fix: use wget fallback when curl missing (bare Alpine runner) --- setup-go/action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup-go/action.yml b/setup-go/action.yml index 0db817e..ec878a7 100644 --- a/setup-go/action.yml +++ b/setup-go/action.yml @@ -30,7 +30,14 @@ runs: fi echo "Installing Go $GO_VERSION..." - curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -C /usr/local -xz + # Use wget on Alpine (no curl), curl elsewhere + if command -v curl &>/dev/null; then + curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -C /usr/local -xz + elif command -v wget &>/dev/null; then + wget -qO- "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -C /usr/local -xz + else + apk add --no-cache curl && curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -C /usr/local -xz + fi echo "/usr/local/go/bin" >> "$GITHUB_PATH" export PATH="/usr/local/go/bin:$PATH" go version