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

Update logic to ensure TTY mode is appropriately disabled #162

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

PeteBishwhip
Copy link
Contributor

Fixes NativePHP/laravel#468

  • Utilises the Symfony Process class which has a tried and tested isTtySupported() method. This will return false if windows due to a DIRECTORY_SEPARATOR check.
  • Removed check for Windows specifically as this is checked as above.
  • Ensures even if TTY is supported, it is still set to off when -n|--non-interactive is specified.

Supporting Documentation:

https://symfony.com/doc/current/components/process.html#checking-for-tty-support

Fixes NativePHP/laravel#468

- Utilises the Symfony Process class which has a tried and tested `isTtySupported()` method. This will return false if windows due to a DIRECTORY_SEPARATOR check.
- Removed check for Windows specifically as this is checked as above.
- Ensures even if TTY is supported, it is still set to off when -n|--non-interactive is specified.
@PeteBishwhip PeteBishwhip force-pushed the bugfix/468-tty-support-checks branch 2 times, most recently from ac7324b to ebc5dca Compare February 5, 2025 14:16
@PeteBishwhip PeteBishwhip marked this pull request as draft February 5, 2025 14:37
@PeteBishwhip PeteBishwhip marked this pull request as ready for review February 5, 2025 14:51
@PeteBishwhip
Copy link
Contributor Author

Half of the tests are now working with my slight changes. The fails were relating to GH Actions and how it was specifying specific versions that appeared to already be implied as good. I just was more specific.

I have no idea what is going on in Windows with being unable to boot right now. I know that wasn't related to this change.

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.

[CI] Github actions fails to run due to TTY mode
1 participant