You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a recipe.yaml does not already exist then gdk component build throws an error. This is a challenge if recipe.yaml is generated by gdk component build with a custom build system.
---
RecipeFormatVersion: '2020-01-25'ComponentName: my-componentComponentVersion: '1.0.0'ComponentDescription: My first AWS IoT Greengrass component.ComponentPublisher: AmazonManifests:
- Platform:
os: linuxLifecycle:
run: | python3
Then run gdk component build
Expected behavior
I expect the component to be built
Actual behavior
I get the error Exception: No valid component recipe is found. Please include a valid recipe file of the component to build with default.
Describe the bug
If a
recipe.yaml
does not already exist thengdk component build
throws an error. This is a challenge ifrecipe.yaml
is generated bygdk component build
with a custom build system.To Reproduce
Use the code below:
gdk-config.json
build-component.sh
#!/usr/bin/env bash mkdir -p ./greengrass-build/artifacts/my-component/1.0.0 mkdir -p ./greengrass-build/recipes/ cp recipe.yaml.template ./greengrass-build/recipes/recipe.yaml
recipe.yaml.template
Then run
gdk component build
Expected behavior
I expect the component to be built
Actual behavior
I get the error
Exception: No valid component recipe is found. Please include a valid recipe file of the component to build with default.
Environment
gdk 1.6.2
Additional context
The AWS documentation says
so a
recipe.yaml
should be an output, not necessarily an input, ofgdk component build
.The text was updated successfully, but these errors were encountered: