You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This however results in google/protobuf/any.proto not found.
And I have verified that it does indeed exist at the github.com/gogo/protobuf/types folder.
Should we be able to use the same paths on windows as in nix or do we have to deal with different / vs \
Better error messages explaining in what folders it has tried to find the files would help alot
Currently, I have solved it using a hack, placing a "google/protobuf" folder with the relevant protos in %GOPATH%/src.
this makes it all work.
So the problem seems to be a mapping issue
The text was updated successfully, but these errors were encountered:
What is --gogoslick_out? It seems it's actually that gogoslick plugin who is responsible for the resolution of google/protobuf/any.proto=github.com/gogo/protobuf/types and it doesn't work on windows. Protoc itself doesn't fetch anything from remote services so you have to put the any.proto in some local path for protoc to work.
gogoslick_out is an alternative Golang generator.
So the plugins are responsible for resolving imports? I'll crosspost this in their repo in that case.
Thanks
I don't think the --proto_path flag is specific to the Go generator plugin.
Do you have the same problem when generating protoc outputs for other languages? That would help narrow it down to protoc or protoc-gen-go. (It's certainly possible that we're using path somewhere we ought to be using filepath or vice-versa.)
When using Protoc.exe on windows, it's somewhat a battle of trial and error in order to get import paths working correctly.
for example, we have this snippet
Which works fine on *nix.
Trying to do the same on Windows, one would assume that we could simply swap out the GOPATH to match windows env vars like so:
This however results in
google/protobuf/any.proto not found
.And I have verified that it does indeed exist at the github.com/gogo/protobuf/types folder.
Should we be able to use the same paths on windows as in nix or do we have to deal with different
/
vs\
Better error messages explaining in what folders it has tried to find the files would help alot
Currently, I have solved it using a hack, placing a "google/protobuf" folder with the relevant protos in
%GOPATH%/src
.this makes it all work.
So the problem seems to be a mapping issue
The text was updated successfully, but these errors were encountered: