metaverse / truss

Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code.
Other
737 stars 144 forks source link

issue:#337, Fixed GOPATH in workflow #338

Closed vpiyush closed 3 years ago

vpiyush commented 3 years ago

I was observing exact same issue as #337. Found out that git workflow is using the hardcoded GOPATH due to which transport service tests are broken. Below is the error:

FATA[0003] cannot generate service: cannot generate gokit service: cannot render template: cannot render template: svc/transport_http.gotemplate: template error: template: svc/transport_http.gotemplate:2:2: executing "svc/transport_http.gotemplate" at <call .HTTPHelper.ServerTemplate .>: error calling call: ERROR: go parser couldn't parse file '/home/runner/work/truss/truss/gengokit/httptransport/embeddable_funcs.go'

Update GOPATH to the env $GOPATH which fixed the issue.