(toolkit): Warning/Errors added using constructs.ConstructMetadata keys type are ignored #8645
Labels
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
p1
package/tools
Related to AWS CDK Tools or CLI
Milestone
Warning/error/info messages that are collected during synth will only be printed out by the toolkit if their type in the metadata array is prefixed with
aws:cdk:
(see code). Since metadata added viaconstructs
uses theConstructMetadata
keys which does not include theaws:cdk:
prefix:will not be printed out by the toolkit.
To give more debug context, this happens since
renderMessage
method inCloudArtifact
use thecxschema.ArtifactMetadataEntryType
keys to collect the messages from the metadata array which all includes theaws:cdk:
prefix, meaning other types will be ignored (e,gwarning
will be ignored butaws:cdk:warning
will be added).Is this by design? From the docs in
constructs
it does not seem like it:Environment
The text was updated successfully, but these errors were encountered: