Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy single action problem #805

Closed
syno-dlr opened this issue Jun 4, 2024 · 5 comments · Fixed by #808
Closed

Deploy single action problem #805

syno-dlr opened this issue Jun 4, 2024 · 5 comments · Fixed by #808
Assignees
Labels
bug Something isn't working

Comments

@syno-dlr
Copy link

syno-dlr commented Jun 4, 2024

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 :

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

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
Copy link

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

@shazron shazron added the bug Something isn't working label Jun 13, 2024
@aiojbot
Copy link
Collaborator

aiojbot commented Jun 13, 2024

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

@shazron shazron self-assigned this Jun 20, 2024
@shazron
Copy link
Member

shazron commented Jul 11, 2024

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):

if (!isStandaloneApp && aioConfig?.project?.workspace?.name === 'Production') {

(preparing a patch)

@shazron
Copy link
Member

shazron commented Jul 15, 2024

PR #808

@shazron
Copy link
Member

shazron commented Jul 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants