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(cli): Conform python and java package names to language standards (no hyphens) #283

Merged
merged 5 commits into from
Aug 5, 2020

Conversation

campionfellin
Copy link
Contributor

With new changes in jsii-srcmak, it throws an Error when trying to use a package or moduleName with a hyphen (see commit: cdklabs/jsii-srcmak@766de96)

This is the other side of that and fixes that issue by replacing - with _.

Tested by changing the version.yaml in the python CRD example to use a hyphen in the name. It successfully comes in as an underscore and is able to be imported.

Fixes #274

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

Signed-off-by: campionfellin <campionfellin@gmail.com>
… (no hyphens)

Fixes: cdk8s-team#274

Signed-off-by: campionfellin <campionfellin@gmail.com>
Signed-off-by: campionfellin <campionfellin@gmail.com>
@campionfellin
Copy link
Contributor Author

Looks like I missed updating the snapshots in the unit tests. Will do that tomorrow!

iliapolo
iliapolo previously approved these changes Aug 4, 2020
@mergify
Copy link
Contributor

mergify bot commented Aug 4, 2020

Your pull request will be updated and merged automatically (do not update manually).

Signed-off-by: campionfellin <campionfellin@gmail.com>
@mergify mergify bot dismissed iliapolo’s stale review August 5, 2020 04:49

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Aug 5, 2020

Your pull request will be updated and merged automatically (do not update manually).

@mergify mergify bot merged commit f0b33c0 into cdk8s-team:master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import generated directory structure invalid for python import with dashes
2 participants