Open
Description
Describe the bug
CDK CLI integration test suite fails for go: https://github.com/aws/aws-cdk-cli/blob/main/packages/%40aws-cdk-testing/cli-integ/tests/init-go/init-go.integtest.ts
Based on failure logs, the issue is due to cyclic dependency, where we observed failure for init go sample-app
with error:
package cdk-integ-0p5dbsi4jjjf
--
188 | imports github.com/aws/aws-cdk-go/awscdk/v2/awssnssubscriptions
189 | imports github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose
190 | imports github.com/aws/aws-cdk-go/awscdk/v2/awsec2
191 | imports github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose: import cycle not allowed
This issue has been observed only for go, and was introduced with this PR aws/aws-cdk#33883.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Like the other languages, go should also be able to handle and work around such cyclic dependencies.
Current Behavior
Integ test for go fails with the following error:
package cdk-integ-0p5dbsi4jjjf
--
188 | imports github.com/aws/aws-cdk-go/awscdk/v2/awssnssubscriptions
189 | imports github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose
190 | imports github.com/aws/aws-cdk-go/awscdk/v2/awsec2
191 | imports github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose: import cycle not allowed
Reproduction Steps
Merge this PR: #33883 that introduces cyclic dependency and run the cdk cli integration tests for go.
Possible Solution
No response
Additional Information/Context
No response
SDK version used
CLI Version: 2.1018.0, JSII: 1.112.0
Environment details (OS name and version, etc.)
Code pipeline (Linux)