Skip to content

Commit 87c16d7

Browse files
authored
Merge pull request #484 from a-hilaly/release-sdk
Default `AWS_SDK_GO_VERSION` to the last used version in release script
2 parents 00e081f + 06fbb09 commit 87c16d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-controller-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ if [[ $RELEASE_VERSION != "$NON_RELEASE_VERSION" ]]; then
169169
fi
170170

171171
if [ -z "$AWS_SDK_GO_VERSION" ]; then
172-
AWS_SDK_GO_VERSION=$(go list -m -f '{{ .Version }}' -modfile "$SERVICE_CONTROLLER_SOURCE_PATH/go.mod" github.com/aws/aws-sdk-go)
172+
AWS_SDK_GO_VERSION=$(cat "$SERVICE_CONTROLLER_SOURCE_PATH/apis/$ACK_GENERATE_API_VERSION/ack-generate-metadata.yaml" | yq ".aws_sdk_go_version" -r)
173173
fi
174174

175175
# If there's a generator.yaml in the service's directory and the caller hasn't

0 commit comments

Comments
 (0)