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

module.proto:30:3: "google.protobuf.Timestamp" is not defined. #1

Open
dzintars opened this issue Jul 27, 2020 · 3 comments
Open

module.proto:30:3: "google.protobuf.Timestamp" is not defined. #1

dzintars opened this issue Jul 27, 2020 · 3 comments
Assignees

Comments

@dzintars
Copy link
Collaborator

dzintars commented Jul 27, 2020

This message leads to compiler failing to compile stubs.

message SignupEntity {
  SignupEntityStatus status = 1;
  google.protobuf.Timestamp status_time = 2;
}

I have this note taken earlier:

In order to compile protobufs, /usr/local/include should be populated with protocolbuffers/protobuf.
Copy include/google/protobuf directory from downloaded archive into /usr/local/include/google

But seems that is not the case there and... it looks to me that in latest protocolbuffers versions there is some changes when installing compiler.

@dzintars dzintars self-assigned this Jul 27, 2020
@dzintars
Copy link
Collaborator Author

dzintars commented Aug 3, 2020

Ok, seems that PATH=$PATH:~/usr/local/include was the missing piece.

@dzintars
Copy link
Collaborator Author

dzintars commented Aug 3, 2020

Leaving for the future me

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PROTOC=/usr/local/include
export PATH=$PATH:$GOROOT:$GOPATH:$GOBIN:$PROTOC

@dzintars
Copy link
Collaborator Author

Or just the missing restart/ source. Removed /usr/local/include from path and seems it still works even after restart, Not sure what was the cause.

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

1 participant