Is there some way to make the protoc generator generate correct Golang 
imports?

Im having trouble importing other proto files and generating Go code.

If I run the compiler using
protoc --go_out=. --proto_path=path\to\my\includes foo.proto

the generated code will contain a  ´import "."´ 


package messages

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import myimport "."   //<---- here

which is not correct, that needs to be pointing to the generated code in 
the source folder of the imported proto.
So I guess my question really is how you make the Go generator know where 
the imported source code exists.

Is there anything I can do?

//Roger



-- 
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.

Reply via email to