When I run symfony pie install into a project folder, PIE ask me the extension I want to install but dont ask the sudo password.
Reproduce
To reproduce, you need dont have the RAR extension installed.
Put this content in composer.json into an empty directory:
{
"require": {
"ext-rar":"*"
}
}
Now, run symfony pie install.
Result
# symfony pie install
🥧 PHP Installer for Extensions (PIE) 1.3.8, from The PHP Foundation
You are running PHP 8.3.30
Target PHP installation: 8.3.30 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php8.3)
Checking extensions for your project __root__ (path: /home/dev/dev/perso/php/try_install_pie)
requires: ext-rar:* 🚫 Missing
The following packages may be suitable, which would you like to install:
[0] None
[1] php-win-ext/rar: rar extension
> 1
> 🥧 PHP Installer for Extensions (PIE) 1.3.8, from The PHP Foundation
> This command may need elevated privileges, and may prompt you for your password.
> You are running PHP 8.3.30
> Target PHP installation: 8.3.30 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php8.3)
> Found package: php-win-ext/rar:v4.2.1 which provides ext-rar
> Extracted php-win-ext/rar:v4.2.1 source to: /home/dev/.config/pie/php8.3_621cd4a512bad963091e8e73ce8e4772/vendor/php-win-ext/rar
> phpize complete.
> Configure complete with options: --with-php-config=/home/dev/.symfony5/tmp/d6fcdeaoiq5dfu6b5bqg/bin/php-config
> Build complete: /home/dev/.config/pie/php8.3_621cd4a512bad963091e8e73ce8e4772/vendor/php-win-ext/rar/modules/rar.so
>
> In SudoRequiresInteractiveTerminal.php line 15:
PIE needed to elevate privileges with /usr/bin/sudo, but you are running in
> a non-interactive terminal, so prompting for a password is not possible.
When I run
symfony pie installinto a project folder, PIE ask me the extension I want to install but dont ask the sudo password.Reproduce
To reproduce, you need dont have the RAR extension installed.
Put this content in
composer.jsoninto an empty directory:{ "require": { "ext-rar":"*" } }Now, run
symfony pie install.Result