-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to smithy 1.7 and generate APIGateway service #1240
Conversation
@@ -71,7 +71,9 @@ smithy-go-publish-local: | |||
|
|||
gen-config-asserts: | |||
@echo "Generating SDK config package implementor assertions" | |||
cd config && go generate | |||
cd config \ | |||
&& go mod tidy \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does mod tidy need to be mixed into these tasks? mod tidy has a separate task that will be run by make generate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to run go mod tidy, when we cd into Config. Or we get an error related to go sum entry not found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah i see, could also set GOFLAGS=-mod=mod
here as well potentially instead of running mod tidy.
* update codegen to use updated smithy provider constructor * add apigateway model * generate apigateway client * update codegen to use renamed shape names. * generate new protocol test * regenerate apigateway service * update to depend on new smithy go hash * update codegen to use renamed shape name in case of conflict * add go mod tidy step in gen-config-asserts * update go mod,go sum for protocol tests and apigateway service * minor comment
Depends on aws/smithy-go#289
Generates latest APIGateway model
Updates codegen to use rename pattern i.e. shapeId.getName(service) when retrieving shape name
TODO:
[ x ] generate and validate protocol tests