Skip to content

Commit

Permalink
ask refresh cache instead of not using proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Feb 7, 2024
1 parent 5dbef55 commit 19e9f4a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/update-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ 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}"

export GOPROXY=direct
echo "Refreshing cache info and waiting 60s"
curl -sSfL -X GET "https://proxy.golang.org/go.mongodb.org/atlas-sdk/${LATEST_SDK_RELEASE}/@v/${LATEST_SDK_TAG}.info"
echo
sleep 60

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"

0 comments on commit 19e9f4a

Please sign in to comment.