adobe / aio-cli-plugin-app

Create, Build and Deploy Cloud Native Applications
Apache License 2.0
19 stars 35 forks source link

Deploy single action problem #805

Open syno-dlr opened 1 month ago

syno-dlr commented 1 month ago

Hello,

When I try to deploy a single Action, I have this error :

$ aio app deploy -a someAction › Error: Cannot read properties of undefined (reading 'getProject')

After some research, I see there is a "publish" flag initialized here : https://github.com/adobe/aio-cli-plugin-app/blob/378781925c07a630fa4887c35ab9a60bfa7e4c94/src/commands/app/deploy.js#L35

flags.publish = flags.publish && !flags.action

This flag is used to initialize libConsoleCLI variable wich is used for "getProject" function...

I think you have to remove "&& !flags.action" to let single action to deploy.

Thank you.

Damien.

naomirobichaud commented 1 month ago

@purplecabbage can we get some eyes on this? Is it better if I create an internal Jira ticket to match?

aiojbot commented 1 month ago

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

shazron commented 4 days ago

This appears to be an issue with the Production workspace, and the --action flag resulting in a logic error that resulted in libConsoleCLI not to be initialized.

If --action is set, it should never go in here (in checking the extension state): https://github.com/adobe/aio-cli-plugin-app/blob/378781925c07a630fa4887c35ab9a60bfa7e4c94/src/commands/app/deploy.js#L88

(preparing a patch)

shazron commented 1 hour ago

PR #808