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(go): invalid major version suffix for submodules and jsii init #2519

Merged
merged 9 commits into from
Feb 3, 2021

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Feb 3, 2021

The major version suffix introduced in #2507 was added at the end of the full module name, but for submodules, the suffix is needed only after the root package name.

Additionally, the _init_ import failed to include the major version suffix as well.

In order to cover these cases in tests, change the version of jsii-calc to 3.20.120 and @scope/jsii-calc-base-of-base to 2.1.1 so that it will be a MV larger then 2.0 and we can verify this works both from top-level modules, submodules and transitive local dependencies.

Fixes #2507


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

The major version suffix introduced in #2507 was added at the end of the full module name, but for submodules, the suffix is needed only after the root package name.

Additionally, the `_init_` import failed to include the major version suffix as well.

In order to cover these cases in tests, change the version of `jsii-calc` to `3.20.1` so that it will be a MV larger then 2.0.

Fixes #2507
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Feb 3, 2021
@eladb eladb requested a review from RomainMuller February 3, 2021 09:05
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
  • Commit ID: f763f34
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@eladb eladb merged commit 12e9b27 into main Feb 3, 2021
@eladb eladb deleted the benisrae/mv-suffix-modules branch February 3, 2021 12:24
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