lileio / lile

Easily generate gRPC services in Go ⚡️
MIT License
1.51k stars 88 forks source link

When there are multiple GOPATH, generate a template error #26

Closed silenceper closed 6 years ago

silenceper commented 7 years ago

When there are multiple GOPATH, generate a template error。

I found this code:

templatePath = os.Getenv("GOPATH") + "/src/github.com/lileio/lile/protoc-gen-lile-server/templates"
arbarlow commented 6 years ago

Hi @silenceper what do mean by multiple GOPATH? There can only be one environment variable set?

arbarlow commented 6 years ago

closing since I don't quite understand and future versions of Go may not even have a GOPATH! Happy to take a PR or re-open