[protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-03-30 Thread Horst Noreick

>
> Hm, I think you may have misunderstood me. GOPATH seems to be some 
> variable to control the paths searched by the Go language compiler
>
> Yes, it's true. I was in  golang context, I looked in the source at 
github. Im not familar with this but i think that rel paths from the file 
descriptor are not useful to detec the fullpath exactly, I have seen that 
you did not handle main()  arguments at first. Dont you get anything you 
need through the args of the main()?. arg[0] should be the command to exec 
your program. and you can get info from getcwd. I havn't wrote a plugin for 
protoc, but i think protoc should pass all arguments to the plugins.  

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-03-29 Thread Horst Noreick
the compiler uses GOPATH from environment

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.