Skip to content
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

"use of internal package" error, after moving to grpc-ecosystem #203

Closed
igateno opened this issue Jul 27, 2016 · 4 comments
Closed

"use of internal package" error, after moving to grpc-ecosystem #203

igateno opened this issue Jul 27, 2016 · 4 comments

Comments

@igateno
Copy link

igateno commented Jul 27, 2016

Last week we moved our references from gengo/grpc-gateway to grpc-ecosystem/grpc-gateway. It was working great, and today I got this error again.

isaac@Isaacs-MacBook-Pro-2
± % go get ./...
package github.com/goforward/api/auth/auth
        imports github.com/grpc-ecosystem/grpc-gateway/runtime
        imports github.com/grpc-ecosystem/grpc-gateway/runtime/internal: use of internal package not allowed

isaac@Isaacs-MacBook-Pro-2
± % git --no-pager grep gengo

isaac@Isaacs-MacBook-Pro-2
± %

As you can see from the git grep call, the string gengo no longer appears in our repo. Any help would be greatly appreciated. Thanks!

@ehernandez-xk
Copy link

@igateno did you resolve it?
Try to re-generate the stub with the new url, probably you have the old url in the .pb.go and pb.gw.go files.

@igateno
Copy link
Author

igateno commented Jul 28, 2016

This issue kept showing up when I was trying to generate the stub. It only went away after I did an rm -rf $GOPATH/* and cloned my repo fresh.

As I was debugging, I noticed that the proto package is still gengo.grpc.gateway. Is there a reason it wasn't changed to grpc-ecosystem.grpc.gateway? Could this be causing issues?

@yugui
Copy link
Member

yugui commented Aug 16, 2016

@igateno Something is wrong because there are no active reference to "gengo.grpc.gateway" in the source of grpc-gateway.

@achew22
Copy link
Collaborator

achew22 commented Oct 4, 2016

@igateno If you're still experiencing this, please reopen it or file a new issue with more information but I'm going to close it for now.

@achew22 achew22 closed this as completed Oct 4, 2016
@tamalsaha tamalsaha mentioned this issue Mar 30, 2017
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants