protoc command not generating correct package imports
- Dominant language
- Go
- Stars
- 12
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I'm attempting to generate the pb.go files for TF and TF Serving and I ran across this repo. I am having an issue with the `protoc` output that I see here as well.
Specifically, import statements for sibling packages are not getting generated correctly. In vendor/tensorflow/core/protobuf/meta_graph.pb.go, for example, the following imports appear:
```
import tensorflow10 "tensorflow/core/framework"
import tensorflow7 "tensorflow/core/framework"
import tensorflow2 "tensorflow/core/framework"
import tensorflow3 "tensorflow/core/framework"
```
The correct code should be a single, fully qualified import statement for the framework package, e.g.
```
import "github.com/myaccount/myproject/tensorflow/core/framework"
```
I've tried various incarnations of `protoc` and `--go_out` without luck. Do you happen to have any insight?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.