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

Avoid generating empty Go imports statement #3135

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

mikeschinkel
Copy link
Contributor

Fixes #3134, hopefully.

@andrewmbenton
Copy link
Collaborator

I think this will likely require updating some test output.

@mikeschinkel
Copy link
Contributor Author

@andrewmbenton — My bad. I was in a haste and forgot to run tests locally.

I've removed import () lines from testdata and the tests are running locally on my machine so hopefully they will pass in CI this time.

@mikeschinkel
Copy link
Contributor Author

@andrewmbenton — Just curious if this might be something you will consider merging, now that the tests all work?

@kyleconroy kyleconroy merged commit 46a31e6 into sqlc-dev:main Feb 14, 2024
8 checks passed
lisitsky pushed a commit to lisitsky/sqlc that referenced this pull request Jun 21, 2024
* Avoid generating empty Go imports statement

Maybe fixes sqlc-dev#3134

* Remove `import ()` from `testdata` golden files
This pull request was closed.
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.

sqlc generates empty imports statement, e.g. "import ()"
3 participants