-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(ec2): Unexpected signature change for IVolume.grantAttachVolumeByResourceTag #22975
Comments
Thanks for reporting this, I was able to reproduce this in Python but not in TypeScript, which leads me to believe this might be a JSII regression. We'll look into fixing this soon |
Confirmed what @peterwoodworth is saying... This is a bug in the |
In certain cases, a function parameter may shadow an imported module name, resultin in run-time errors either during type-checking or during the type-cast that is performed before returning a kernel call's result. This change adds a test case that covers this particular scenario in Python, and changes how foreign modules are imported so that an alias is always generated for those, removin the risk for collisions. Fixes aws/aws-cdk#22975
In certain cases, a function parameter may shadow an imported module name, resultin in run-time errors either during type-checking or during the type-cast that is performed before returning a kernel call's result. This change adds a test case that covers this particular scenario in Python, and changes how foreign modules are imported so that an alias is always generated for those, removing the risk for collisions. It also moves the type-checking stubs out to the root of the module to remove the risk of more "runtime context" polluting the type evaluation. Fixes aws/aws-cdk#22975 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
|
@RomainMuller As JSII versions are fixed in |
We always close on merge of code, there is going to be some delay between that and the next release on any issue that gets fixed |
Merged in JSII 1.72.0 |
And finally deployed with CDK 2.55.0, thanks :) |
This was an abnormally long wait @zessx, thanks a ton for your patience! |
Describe the bug
The
IVolume.grantAttachVolumeByResourceTag
signature seems to have changed, as it no longer accept a list ofConstruct
in thecontructs
argument.Still, no trace of any change in the documentation or in the CHANGELOG.
Expected Behavior
This code is expected to work, like with the version 2.50.0:
Current Behavior
This code now raises the following error:
Reproduction Steps
Works with 2.50.0, fails with 2.51.0.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.51.0
Framework Version
No response
Node.js Version
v14.17.6
OS
macOS 12.3 (21E230)
Language
Python
Language Version
Python 3.10.8
Other information
No response
The text was updated successfully, but these errors were encountered: