You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Definitely a code-gen bug. I have a fix ready for review on aws/jsii. Note that this issue would also affect values nested under maps (Record<string, Foo>, a.k.a: { [key: string]: Foo }).
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
It appears that
JSII_DEPRECATED
does not impact the CLIs behavior with certain deprecations. Per https://github.com/aws/aws-cdk/blob/v1.172.0/packages/@aws-cdk/aws-ec2/lib/vpc.ts#L166 and https://github.com/aws/aws-cdk/blob/v1-main/DEPRECATED_APIs.md, it appears thatec2.SubnetType.ISOLATED
is deprecated but the CLI does not report this. It is not clear if this is a documentation error or an actual bug in the CLI.Expected Behavior
JSII_DEPRECATED=fail cdk synth -q --strict
to exit with a non-zero status whenec2.SubnetType.ISOLATED
is usedCurrent Behavior
JSII_DEPRECATED=fail cdk synth -q --strict
exits with a zero status whenec2.SubnetType.ISOLATED
is usedReproduction Steps
Running
JSII_DEPRECATED=fail cdk synth -q --strict; echo $?
with the followingapp.py
exits with a status of 0 when it should be non-zero:Note that the following
app.py
does exit with a non-zero status which is what I would expect:This generates an error message of:
Possible Solution
No response
Additional Information/Context
This was discovered in preparation for migrating to CDKv2, so there may be other cases besides
ec2.SubnetType.ISOLATED
where this issue exists.CDK CLI Version
1.172.0 (build f091202)
Framework Version
No response
Node.js Version
v14.17.6
OS
macOS Monterey 12.5.1
Language
Python
Language Version
Python 3.9.6
Other information
#17742 talks about
JSII_DEPRECATED
a bit, but does not seem to help here.The text was updated successfully, but these errors were encountered: