You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unused imports generated in querier interfaces. #2707
As of 1.21, querier interfaces are being generated with unused imports, breaking compilation. The configuration uses multiple packages, and of course emit_interface.
Relevant log output
// Code generated by sqlc. DO NOT EDIT.
// versions:
-// sqlc v1.20.0
+// sqlc v1.21.0
package testutilsql
import (
"context"
+ "database/sql"
+ "time""github.com/google/uuid"
)
Activity
kyleconroy commentedon Sep 6, 2023
@coady Could you provide a bit more context here? In what files do the extra imports appear?
verygoodsoftwarenotvirus commentedon Sep 7, 2023
I also have this issue. For me, the file defined by
output_querier_file_namein sqlc.yaml results in an extra import (in my case"time")iamwavecut commentedon Sep 7, 2023
yangkenneth commentedon Sep 7, 2023
Also seeing this problem, when setting
emit_interface: trueI'm getting a few extra import statements that aren't used.Unused Imports in
db/sqlc/querier.go:sqlc.yaml Configuration: