Skip to content

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
ContributorAuthor

@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
ContributorAuthor

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

@kyleconroykyleconroy merged commit 46a31e6 into sqlc-dev:mainFeb 14, 2024
lisitsky pushed a commit to lisitsky/sqlc that referenced this pull request Jun 21, 2024
* Avoid generating empty Go imports statement Maybe fixessqlc-dev#3134 * Remove `import ()` from `testdata` golden files
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
* Avoid generating empty Go imports statement Maybe fixessqlc-dev#3134 * Remove `import ()` from `testdata` golden files
Sign up for freeto 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

@mikeschinkel@andrewmbenton@kyleconroy