-
Notifications
You must be signed in to change notification settings - Fork 809
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
Installation errors "go install" #1473
Comments
I notice you're using Go 1.12. Building sqlc requires Go >= 1.16. Once you've upgraded to that version, let me know if you're still seeing this bug |
Oops, after reading this again, 1.12 is the sqlc version. What version of Go are you using? |
same for me |
I'm seeing the same problem after I tried to vendor my dependencies. Reason seems to be that the include sub-folder below parser does not make it into the vendor tree. This issue explains it golang/go#26366 . |
The instructions on the module with the vendoring issue resolved it for me. |
Version
1.12.0
go version go1.17.5
What happened?
../vendor/github.com/pganalyze/pg_query_go/v2/parser/parser.go:6:10: fatal error: pg_query.h: No such file or directory
#include "pg_query.h"
^~~~~~~~~~~~
What operating system are you using?
macOS(darwin/amd64)
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: