Skip to content

Commit

Permalink
no Go proxy and get info
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Feb 7, 2024
1 parent 3d5c0ee commit c21a032
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/update-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
set -euo pipefail

LATEST_SDK_TAG=$(curl -sSfL -X GET https://api.github.com/repos/mongodb/atlas-sdk-go/releases/latest | jq -r '.tag_name')

LATEST_SDK_RELEASE=$(echo "${LATEST_SDK_TAG}" | cut -d '.' -f 1)
echo "==> Updating SDK to latest major version ${LATEST_SDK_TAG}"
GOPROXY=direct

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"
gomajor get "go.mongodb.org/atlas-sdk/${LATEST_SDK_RELEASE}@${LATEST_SDK_TAG}"
go mod tidy
echo "Done"
echo "Done"

0 comments on commit c21a032

Please sign in to comment.