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

Support dot imports #16

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Support dot imports #16

merged 2 commits into from
Aug 21, 2023

Conversation

rmohr
Copy link
Contributor

@rmohr rmohr commented Aug 3, 2023

Changes

/kind bug

Fix suggested fixes for . imports.

Before this change, a dot import literally replaced the import name. For instancel pkgname.Function was transformed to ..Function instead of just Function.

While it is in general not desirable to use dot imports in golang, there are prominent exceptions, specifically ginkgo/gomega, where some may still want to use dot imports.

Release Note

Create proper suggested fixes for dot imports

@rmohr
Copy link
Contributor Author

rmohr commented Aug 14, 2023

@julz looks like the jobs may require a bump to 1.19 and 1.20 from 1.15 and 1.16? Would you have a problme with that?

@julz
Copy link
Owner

julz commented Aug 14, 2023

not at all, that would be great!

@rmohr
Copy link
Contributor Author

rmohr commented Aug 16, 2023

Done: #17

Signed-off-by: Roman Mohr <rmohr@google.com>
Typically no dot imports are desired but ginkgo/gomega is a common
exception.

Signed-off-by: Roman Mohr <rmohr@google.com>
@rmohr
Copy link
Contributor Author

rmohr commented Aug 21, 2023

@julz thank you for merging #17. Test results look good now. :)

@julz julz merged commit 441cd3f into julz:main Aug 21, 2023
6 checks passed
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