On Wednesday, March 30, 2016 at 2:12:46 AM UTC+2, Horst Noreick wrote:
>
> the compiler uses GOPATH from environment
>

Hm, I think you may have misunderstood me. GOPATH seems to be some variable 
to control the paths searched by the Go language compiler.

What I'm looking for is a way to determine (from the 
google::protobuf::FileDescriptor, or some other API accessible to protobuf 
compiler plugins) the full on-disk path to the directory that is considered 
the "source tree" of the currently processed file, so that I can construct 
the full on-disk path to it. The reason I need this is that my plugin needs 
to open the file to do some ad-hoc parsing of the file.

I don't think GOPATH will give me any of this.

Cheers,
Elvis


-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to