-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
What is the problem?
v1.139.0 synthesizes Cloud Assembly Schema Version 16.0.0, but the latest CLI doesn't support it. In CDK Pipelines, without explicitly setting cliVersion: '1', the self-mutation step currently fails.
I'm sure that v2's CLI will be released soon, but given that the latest CLI may continue to be released out of step with (and later than) v1 schema version bumps, I wonder if many Pipelines users will get caught by this issue whenever v1 gets the schema bump first, like until the user sets cliVersion explicitly.
Reproduction Steps
What did you expect to happen?
Pipelines should use CDK CLI v1 to self-mutate.
What actually happened?
Pipelines used CDK CLI v2 (latest) which doesn't yet support the latest Cloud Assembly Schema Version, so it threw an error.
CDK CLI Version
2.5.0
Framework Version
1.139.0
Node.js Version
N/A
OS
Linux
Language
Typescript
Language Version
TypeScript (4.5.4)
Other information
Would it make the user's life easier if the Pipelines construct defaulted cliVersion to "1" rather than blank when synthesizing a v1 app? The changes would be here:
| const installSuffix = this.props.cliVersion ? `@${this.props.cliVersion}` : ''; |
| const installSuffix = this.props.cliVersion ? `@${this.props.cliVersion}` : ''; |
