From 5dbef556f270230c9d4d10d42b1447b8e010ab98 Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Wed, 7 Feb 2024 19:41:09 +0100 Subject: [PATCH] address comments --- scripts/update-sdk.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/update-sdk.sh b/scripts/update-sdk.sh index cfcaff9e28..8b4c63b523 100755 --- a/scripts/update-sdk.sh +++ b/scripts/update-sdk.sh @@ -20,9 +20,12 @@ LATEST_SDK_TAG=$(curl -sSfL -X GET https://api.github.com/repos/mongodb/atlas-s LATEST_SDK_RELEASE=$(echo "${LATEST_SDK_TAG}" | cut -d '.' -f 1) echo "==> Updating SDK to latest major version tag: ${LATEST_SDK_TAG}, release: ${LATEST_SDK_RELEASE}" -curl -sSfL -X GET "https://proxy.golang.org/go.mongodb.org/atlas-sdk/${LATEST_SDK_RELEASE}/@v/${LATEST_SDK_TAG}.info" -GOPROXY=direct -echo "Using GOPROXY: $GOPROXY" + +export GOPROXY=direct gomajor get "go.mongodb.org/atlas-sdk/${LATEST_SDK_RELEASE}@${LATEST_SDK_TAG}" go mod tidy + +echo "Refreshing cache info" +curl -sSfL -X GET "https://proxy.golang.org/go.mongodb.org/atlas-sdk/${LATEST_SDK_RELEASE}/@v/${LATEST_SDK_TAG}.info" + echo "Done"