-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vendoring with go mod vendor leads to "fatal error: 'pg_query.h' file not found" #61
Comments
@manitgupta Unfortunately I'm not sure what is causing this issue - we have seem similar problems ourselves, and are using modvendor to solve them for our own internal use case with the pganalyze collector: https://github.com/pganalyze/collector/blob/main/Makefile#L32 (possibly you can ask someone internally on the Go team at Google, how |
@lfittl I looked into this issue and the reason seems to be that I am willing to do a similar PR for |
This
|
I've just encountered this as well, upstream ticket is golang/go#26366 ("resolved", yeah, great). |
Hi,
We are using
pg_query_go
as a dependency for harbourbridge.When I vendor in
pg_query_go
usinggo mod vendor
, I get a missing C header error:I am on
pg_query_go
v2.0.5.This is what gets vendored in:
When I just
rm -r vendor
, this problem goes away and everything works fine.I saw a similar issue in another repo here: goccy/go-graphviz#28
Could you please suggest a path to vendoring in this library?
The text was updated successfully, but these errors were encountered: