From 456bd4693c630601270fbd58764ac196fba1b8f7 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Mon, 24 Feb 2025 10:16:05 +0700 Subject: [PATCH] [core] GOWS - fetch proto from ref with no v --- Dockerfile | 2 +- scripts/gows-proto.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eb9f0424..7fca82da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,7 +66,7 @@ RUN \ elif [ "$ARCH" = "aarch64" ]; then ARCH="arm64"; \ else echo "Unsupported architecture: $ARCH" && exit 1; fi && \ mkdir -p /go/gows/bin && \ - wget -O /go/gows/bin/gows https://github.com/${GOWS_GITHUB_REPO}/releases/download/v.${GOWS_SHA}/gows-${ARCH} && \ + wget -O /go/gows/bin/gows https://github.com/${GOWS_GITHUB_REPO}/releases/download/${GOWS_SHA}/gows-${ARCH} && \ chmod +x /go/gows/bin/gows diff --git a/scripts/gows-proto.js b/scripts/gows-proto.js index 1b44e35f..590b63e9 100644 --- a/scripts/gows-proto.js +++ b/scripts/gows-proto.js @@ -53,7 +53,7 @@ function cleanDirectory(directory, suffix) { // Helper function to download files async function downloadFiles(repo, ref, directory) { for (const file of PROTO_FILES) { - const url = `https://github.com/${repo}/releases/download/v.${ref}/${file}`; + const url = `https://github.com/${repo}/releases/download/${ref}/${file}`; const filePath = path.join(directory, file); try { const response = await axios.get(url, { responseType: 'arraybuffer' });