-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option paths=source_relative:. causes import cycle loop #196
Comments
This is hard to debug without more detail. Can you share the |
@spenczar Yes, sure. Untar these files and run go_generate.sh |
Thanks, I'm able to reproduce your error. I'll isolate it into a test case and work on a fix. |
@spenczar, how i can install a specific version of protoc-gen-twirp? |
@strobil Something like this: export GOPATH=$(mktemp -d)
mkdir -p $GOPATH/src/github.com/twitchtv/twirp
git clone https://github.com/twitchtv/twirp.git $GOPATH/src/github.com/twitchtv/twirp
cd $GOPATH/src/github.com/twitchtv/twirp
git checkout -b fix_local_proto_imports origin/fix_local_proto_imports
go build -o $HOME/protoc-gen-twirp $GOPATH/src/github.com/twitchtv/twirp Now you'll have an updated version of |
Spencer's fix for this issue was released in v5.10.2. |
Command used for generating *twirp.go
When i am trying to build project this error occurs:
The reason is in generated file which contains this line, but it should not, because the package name is identical in both cases (tv_service)
import tv_service8 "gitlab.sweet.tv/proto/tv_service"
If i remove paths=source_relative:. the generated file does not contain this import line.
The text was updated successfully, but these errors were encountered: