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

Use google.golang.org/protobuf to generate stubs #104

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Dec 1, 2023

There's been a long-standing issue on updating, hopefully it's a good time to do so.

Fixes #30

GOBIN=$(PWD)/bin go install github.com/golang/protobuf/protoc-gen-go
PATH=$(PWD)/bin:$(PATH) protoc --proto_path=$(LIBDIR)/protobuf --go_out=. $(LIBDIR)/protobuf/pg_query.proto
GOBIN=$(PWD)/bin go install google.golang.org/protobuf/cmd/protoc-gen-go
PATH="$(PWD)/bin:$(PATH)" protoc --proto_path=$(LIBDIR)/protobuf --go_out=. --go_opt=Mpg_query.proto=/pg_query --go_opt=paths=source_relative $(LIBDIR)/protobuf/pg_query.proto
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a folder in my path with spaces in it so needed to quote the PATH variable

Copy link
Member

@lfittl lfittl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for the contribution!

@lfittl lfittl merged commit e2b23fa into pganalyze:main Dec 2, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

Use Go Protobuf APIv2
2 participants