Skip to content
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

go.mod of v1.1.8 out of date #40

Open
hejops opened this issue Aug 21, 2024 · 2 comments
Open

go.mod of v1.1.8 out of date #40

hejops opened this issue Aug 21, 2024 · 2 comments

Comments

@hejops
Copy link

hejops commented Aug 21, 2024

As of the newest commit, go.mod has:

github.com/pganalyze/pg_query_go/v5 v5.1.0

However, v1.1.8 (aka latest) still has:

github.com/pganalyze/pg_query_go/v4 v4.2.0

This version of pg_query_go leads to the following compilation error:

$ go install github.com/houqp/sqlvet@latest
go: downloading github.com/houqp/sqlvet v1.1.8
go: downloading github.com/logrusorgru/aurora v2.0.3+incompatible
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading github.com/pganalyze/pg_query_go/v4 v4.2.0
go: downloading golang.org/x/tools v0.13.0
go: downloading golang.org/x/tools/go/pointer v0.1.0-deprecated
go: downloading golang.org/x/sys v0.12.0
go: downloading golang.org/x/mod v0.12.0
go: downloading github.com/golang/protobuf v1.5.0
go: downloading google.golang.org/protobuf v1.33.0
# github.com/pganalyze/pg_query_go/v4/parser
src_port_snprintf.c:374:1: error: conflicting types for ‘strchrnul’; have ‘const char *(const char *, int)’
  374 | strchrnul(const char *s, int c)
      | ^~~~~~~~~
In file included from go/pkg/mod/github.com/pganalyze/pg_query_go/[email protected]/parser/include/c.h:61,
                 from src_port_snprintf.c:62:
/usr/include/string.h:286:14: note: previous declaration of ‘strchrnul’ with type ‘char *(const char *, int)’
  286 | extern char *strchrnul (const char *__s, int __c)
      |              ^~~~~~~~~
@valichek
Copy link
Contributor

Provide go version, please

@hejops
Copy link
Author

hejops commented Aug 23, 2024

go version go1.23.0 linux/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants