Skip to content

Bazel build files #479

@mmcloughlin

Description

@mmcloughlin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamIssue is caused by a dependencywontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions