Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Feb 7, 2024
1 parent a40eaa4 commit 5dbef55
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/update-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 5dbef55

Please sign in to comment.