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

Fix new command failing without no-ansi option #202

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

tonysm
Copy link
Contributor

@tonysm tonysm commented Jun 1, 2021

Fixed

  • Fixes the laravel new command failing without the no-ansi option

The underlying Symfony Input::getOption (source) fails when the option is missing in the command definition, so I think we need to call it after a $input->hasOption() check. Not sure how this has been working before (as it looks like things haven't changed in a while both in Symfony console and here), but it broke today on my end when running laravel new ....

Running the tests was also failing over here and I enabled the workflows on my fork repository to show it breaking. I was getting the same error locally:

image

I'm not sure about the other getOption calls in the NewCommand file, though.

@driesvints
Copy link
Member

Thanks for reporting. Saw our scheduled build breaking as well. I suspect this has something to do with the new Symfony 5.3 release. Investigating.

@driesvints
Copy link
Member

Seems like symfony/symfony#39642 removed the no-ansi flag. Seems like a breaking change to me on a minor release.

@driesvints
Copy link
Member

@driesvints
Copy link
Member

@tonysm FYI: this is the actual fix: #203

See symfony/symfony#39642 (comment)

@tonysm
Copy link
Contributor Author

tonysm commented Jun 1, 2021

@driesvints ah, good finding. Thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants