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): shorten file names for sub-packages #3927

Merged
merged 7 commits into from
Feb 3, 2023

Conversation

DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Jan 25, 2023

CDKTF is running into build issues one some providers due to file names being too long for golang to handle: https://github.com/cdktf/cdktf-provider-googlebeta/actions/runs/4002506018/jobs/6869839656#step:8:11

This is my slightly naive try to get rid of a few characters (especially with long package names)


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

@DanielMSchmidt
Copy link
Contributor Author

I have a hard time updating the snapshots 🙈 Can someone help me out here?

Copy link
Contributor

@RomainMuller RomainMuller left a comment

Choose a reason for hiding this comment

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

To update snapshots, you should just be able to run yarn test:update

),
false,
);
emit.call(this, join(this.directory, `${type.name}__checks.go`), false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this not risk collisions if two namespaces have the same leaf type name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, they are in nested folders

RomainMuller
RomainMuller previously approved these changes Feb 3, 2023
@mergify mergify bot dismissed RomainMuller’s stale review February 3, 2023 14:00

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Feb 3, 2023

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Feb 3, 2023
@mergify
Copy link
Contributor

mergify bot commented Feb 3, 2023

Merging (with squash)...

@mergify mergify bot merged commit 7697571 into aws:main Feb 3, 2023
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Feb 3, 2023
@DanielMSchmidt DanielMSchmidt deleted the shorten-golang-file-names branch February 6, 2023 10:46
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.

2 participants