aio-cli-plugin-runtime
aio-cli-plugin-runtime copied to clipboard
export command produces manifest in different format and breaks the app commands
Describe the bug
With aio rt export
the manifest we get looks like below.
project:
name: expproj
packages:
__APP_PACKAGE__:
Trying any of the app commands eg: aio app logs
with this exported manifest fails with
TypeError: Cannot read property '__APP_PACKAGE__' of undefined
This is because app plugin expects the manifest format like below
project:
name: expproj
packages:
__APP_PACKAGE__:
Notice that packages
is at the same level as project
To Reproduce See above
Expected behavior Should work
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
which is the correct syntax?
This needs to be cleared up via the Openwhisk dev list, or their Slack -- if not we will end up re-fixing this in the future.
I spent some time on this yesterday. The latest wskdeploy export
puts packages
at the same level as project
. wskdeploy sync
works fine in both formats which i think must be for backward compatibility.
Confirmed the same with openwhisk team on slack. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1592377240431500
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-812