wfxiang08 / goprotobuf

Automatically exported from code.google.com/p/goprotobuf
Other
0 stars 0 forks source link

incorrect generated import #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create two .proto files in different folders
2. Let one .proto file import the other and use one of its messages
3. Run protoc on both files

What is the expected output? What do you see instead?
In the pb.go file that imports the other I expect the import to say:
import foo "bar/foo"
instaed I see
import foo "bar/foo/foo.pb"

What version of the product are you using? On what operating system?
current, linux

Please provide any additional information below.
I guess this is still a remnant from golang reflect fix 

Original issue reported on code.google.com by walterc...@gmail.com on 29 Apr 2011 at 2:16

GoogleCodeExporter commented 9 years ago
It's working as intended. Look at the imports in the 
compiler/testdata/test.pb.go.golden.  Also look at that file name: if you drop 
the .go suffix, you get test.pb, so that's what should be imported and is the 
name supported by Make.protobuf.

Original comment by r@golang.org on 29 Apr 2011 at 2:57