Skip to content

Update logic to ensure TTY mode is appropriately disabled#162

Merged
SRWieZ merged 4 commits into
NativePHP:mainfrom
PeteBishwhip:bugfix/468-tty-support-checks
Feb 17, 2025
Merged

Update logic to ensure TTY mode is appropriately disabled#162
SRWieZ merged 4 commits into
NativePHP:mainfrom
PeteBishwhip:bugfix/468-tty-support-checks

Conversation

@PeteBishwhip
Copy link
Copy Markdown
Member

Fixes https://github.com/NativePHP/laravel/issues/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

Pete Bishop added 4 commits February 5, 2025 13:22
Fixes https://github.com/NativePHP/laravel/issues/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
Copy Markdown
Member Author

PeteBishwhip commented Feb 5, 2025

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 Ubuntu with being unable to boot right now. I know that wasn't related to this change.

Comment thread composer.json
@SRWieZ SRWieZ requested a review from gwleuverink February 13, 2025 15:23
@SRWieZ
Copy link
Copy Markdown
Member

SRWieZ commented Feb 17, 2025

If @gwleuverink approves it, we can merge it. Next, we need to merge Willem's work before making any other changes to the build command.

@SRWieZ SRWieZ merged commit d978aa5 into NativePHP:main Feb 17, 2025
@PeteBishwhip PeteBishwhip deleted the bugfix/468-tty-support-checks branch February 17, 2025 11:51
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

3 participants