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

flogo binary not getting generated for grpc recipes #1

Open
LakshmiMekala opened this issue Feb 27, 2019 · 3 comments
Open

flogo binary not getting generated for grpc recipes #1

LakshmiMekala opened this issue Feb 27, 2019 · 3 comments
Assignees

Comments

@LakshmiMekala
Copy link

Create an app using 'flogo create -f flogo.json'
~/go/src/github.com/project-flogo/grpc/examples/json/rest-to-grpc/MyProxy$ flogo build
Error in building /home/lmekala/go/src/github.com/project-flogo/grpc/examples/json/rest-to-grpc/MyProxy/src
Error: # main
./petstore.pb.go:23:11: undefined: proto.ProtoPackageIsVersion3

protoc version : libprotoc 3.7.0

@pointlander
Copy link
Contributor

Skip the grpc code generation step and manually add the following to the imports.go file:

_ "github.com/project-flogo/grpc/proto/rest2grpc"

your imports.go file should look like this:

package main

import (
_ "github.com/project-flogo/contrib/trigger/rest"
_ "github.com/project-flogo/microgateway"
_ "github.com/project-flogo/grpc/activity"
_ "github.com/project-flogo/grpc/proto/rest2grpc"
)

@pointlander
Copy link
Contributor

Should now be working. Use latest cli and GRPC. GRPC docs have been updated.

@reidlai
Copy link

reidlai commented Dec 16, 2020

Skip the grpc code generation step and manually add the following to the imports.go file:

_ "github.com/project-flogo/grpc/proto/rest2grpc"

your imports.go file should look like this:

package main

import (
_ "github.com/project-flogo/contrib/trigger/rest"
_ "github.com/project-flogo/microgateway"
_ "github.com/project-flogo/grpc/activity"
_ "github.com/project-flogo/grpc/proto/rest2grpc"
)

Based on the quoted import statement, it seems the app will listen rest request to trigger flow. How can grpc client call the flow?

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

3 participants