aio-cli-plugin-runtime icon indicating copy to clipboard operation
aio-cli-plugin-runtime copied to clipboard

export command produces manifest in different format and breaks the app commands

Open Himavanth opened this issue 4 years ago • 5 comments

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.

Himavanth avatar Jun 16 '20 13:06 Himavanth

which is the correct syntax?

purplecabbage avatar Jun 16 '20 18:06 purplecabbage

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.

shazron avatar Jun 16 '20 22:06 shazron

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.

Himavanth avatar Jun 17 '20 06:06 Himavanth

Confirmed the same with openwhisk team on slack. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1592377240431500

Himavanth avatar Jun 18 '20 04:06 Himavanth

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-812

aiojbot avatar Jun 18 '20 07:06 aiojbot