project-flogo / cli

CLI used to create & build Flogo applications.
BSD 3-Clause "New" or "Revised" License
32 stars 36 forks source link

Build issue in Flows with Lambda Trigger #103

Closed akpuvvada closed 4 years ago

akpuvvada commented 4 years ago

Getting below error when trying to build app developed from FLogo UI. I tried adding missing things comparing to the Sample given in Tutorial at https://tibcosoftware.github.io/flogo/faas/how-to/. Attached both JSONs in Zip file.

aws_lambda_rest_poc_ini_2_updated.zip

flogo build -e --shim aws_lambda_trigger --verbose
Embedding configuration in application...
Creating shim support files...
Preparing shim...
Using build.go to build shim......
Running build script for the Lambda trigger
Cleaning up previous executables
Building a new handler file
# github.com/project-flogo/flow/definition
C:\Users\206503518\go\pkg\mod\github.com\project-flogo\flow@v0.9.4\definition\resolve.go:14:16: undefined: "github.com/project-flogo/core/data/resolve".PropertyResolver
exit status 2Zipping the new handler file
Failed to compress file: open C:\Users\206503518\OneDrive - NBCUniversal\My Documents\Desktop\Flogo\AWS_POC\POC2\AWS_Lambda_REST_POC_INI2\src\handler: The system cannot find the file specified.Cleaning up shim support files...
skothari-tibco commented 4 years ago

Can you try running flogo update github.com/project-flogo/flow@master ?

akpuvvada commented 4 years ago

I did that, below is the sequence of commands I am trying every-time.

cd C:\Flogo\AWS_POC\POC2
set http_proxy=http://proxy.inbcu.com:80/
flogo create -f aws_lambda_rest_poc_ini_2.json AWS_Lambda_REST_POC_INI2
cd AWS_Lambda_REST_POC_INI2
flogo update github.com/project-flogo/core@master
flogo build -e --shim aws_lambda_trigger
skothari-tibco commented 4 years ago

It's "flow".

akpuvvada commented 4 years ago

ok, let me try that.

What is the difference?

skothari-tibco commented 4 years ago

Did that help?

akpuvvada commented 4 years ago

Yes, it worked.

Thanks, Samip.

What is the difference?

skothari-tibco commented 4 years ago

The "core" is the engine that runs the flogo App. It combines the triggers and action/activities specified in JSON file and runs them. "Flow" on the other hand is a type of action that is called by the trigger to process the event. Hope that helps.

agg24ankit commented 3 years ago

@skothari-tibco What is the solution for this. I am also getting same error

agg24ankit commented 3 years ago

This is my error D:\Flogo\app\myapp2>flogo build -e --shim aws_lambda_trigger --verbose Embedding configuration in application... Creating shim support files... Preparing shim... Using build.go to build shim...... Running build script for the Lambda trigger Cleaning up previous executables Building a new handler file go: main: package github.com/aws/aws-lambda-go/lambda imported from implicitly required module; to add missing requirements, run: go get github.com/aws/aws-lambda-go/lambda@v1.10.0 exit status 1Zipping the new handler file Failed to compress file: open D:\Flogo\app\myapp2\src\handler: The system cannot find the file specified.Cleaning up shim support files...