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

Getting this on go get . in the src directory: HelloService.pb.go:20:8 - no Go files in \go\src\google\api #518

Closed
jporwal05 opened this issue Jan 10, 2018 · 3 comments

Comments

@jporwal05
Copy link

Some code:

`import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google/api"

import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)`

Have the following in my src directory:

HelloService.pb.go HelloService.pb.gw.go github.com golang.org google google.golang.org

@jporwal05 jporwal05 changed the title Getting this on go get . in the src directory: HelloService.pb.go:20:8 - no Go files in mydirectory\google\api Getting this on go get . in the src directory: HelloService.pb.go:20:8 - no Go files in \go\src\google\api Jan 10, 2018
@achew22
Copy link
Collaborator

achew22 commented Feb 16, 2018

Did you use protoc to generate the proto that you defined? Have you had any luck on fixing this recently? What have you tried that worked/didn't work?

@jporwal05
Copy link
Author

Apologies for the delayed reply. The issue was with the way that I setup Go. If Go is setup correctly then one would not run into this issue.
Note to visitors: If you are visiting this for a similar issue, I would suggest you double check your Go setup and make sure you have set it up as per the official docs.

@achew22
Copy link
Collaborator

achew22 commented Mar 13, 2018

Thanks for following up!

@achew22 achew22 closed this as completed Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants