Skip to content
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

fix(pacmak): go bad local package imports #1973

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

MrArnoldPalmer
Copy link
Contributor

When generating import statements within go code, if the package was a
child of the package currently being generated, the import statement
would not include the module name.

When a package is part of a module though this caused invalid imports.
So for all package import statements moduleNames are now included when
provided in the jsii config.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When generating import statements within go code, if the package was a
child of the package currently being generated, the import statement
would not include the module name.

When a package is part of a module though this caused invalid imports.
So for all package import statements moduleNames are now included when
provided in the jsii config.
@MrArnoldPalmer MrArnoldPalmer added this to the GoLang Alpha milestone Sep 2, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 2, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
  • Commit ID: 5539dcf
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@SoManyHs SoManyHs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@MrArnoldPalmer MrArnoldPalmer merged commit f9311b2 into aws:master Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants