Using the following command line where persister contains files generated by sqlc, your latest commit in master fails to correctly generate the file ./app/query.iface.go because it cannot find the struct Queries in the first.go file.
I moved the if !validateStructType(...) {...} to after the for loop and passed allDeclaredTypes instead of types and it allowed the file to be generated. I believe this is all that is needed for a fix.
Using the following command line where
persister
contains files generated by sqlc, your latest commit in master fails to correctly generate the file./app/query.iface.go
because it cannot find the structQueries
in the first.go
file.I moved the
if !validateStructType(...) {...}
to after the for loop and passedallDeclaredTypes
instead oftypes
and it allowed the file to be generated. I believe this is all that is needed for a fix.