It would be nice if this project could provide bazel build files.
I've been struggling to build the sqlc binary with bazel/gazelle. I'm likely to give up and just use the release binaries, but I thought I'd file an issue to record the difficulties.
The main challenge is cgo: build fails with com_github_lfittl_pg_query_go/parser/parser.go:6:10: fatal error: pg_query.h: No such file or directory. Making this work with bazel is apparently possible but non-trivial, and would require special bazel build files either in sqlc or pg_query_go.
The following file also causes problems for gazelle, since it references a fake pacakge:
https://github.com/kyleconroy/sqlc/blob/3d3630a6b526e2e2c0649b7c405b56c5935de754/internal/endtoend/testdata/mysql_overrides/go/models.go#L9
Again, not high priority since the release binaries provide a workaround.
It would be nice if this project could provide bazel build files.
I've been struggling to build the
sqlcbinary with bazel/gazelle. I'm likely to give up and just use the release binaries, but I thought I'd file an issue to record the difficulties.The main challenge is
cgo: build fails withcom_github_lfittl_pg_query_go/parser/parser.go:6:10: fatal error: pg_query.h: No such file or directory. Making this work with bazel is apparently possible but non-trivial, and would require special bazel build files either insqlcorpg_query_go.The following file also causes problems for
gazelle, since it references a fake pacakge:https://github.com/kyleconroy/sqlc/blob/3d3630a6b526e2e2c0649b7c405b56c5935de754/internal/endtoend/testdata/mysql_overrides/go/models.go#L9
Again, not high priority since the release binaries provide a workaround.