Skip to content

Commit 660c258

Browse files
committed
Default the AWS_SDK_GO_VERSION to last used version for code-generation
Will revert once, we release ARM images for all the controllers. Signed-off-by: Amine Hilaly <[email protected]>
1 parent 5ae526f commit 660c258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-controller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ mkdir -p "$config_output_dir/crd/common"
138138
cp -r "$RUNTIME_CRD_DIR"/crd/* "$config_output_dir/crd/common/"
139139

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

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

0 commit comments

Comments
 (0)