composer-stager icon indicating copy to clipboard operation
composer-stager copied to clipboard

Add support for PHAR executables

Open TravisCarden opened this issue 1 year ago • 1 comments

Due to an issue with Symfony Process, Composer Stager does not currently detect Composer if it has a .phar extension. If that issue isn't resolved, we could work around it by searching for executable, and if it's not found, trying again with executable.phar. It would be a little ugly, but it would work if we decide it's important.

  • [x] See if the issue can be fixed upstream in https://github.com/symfony/symfony/pull/52679.
  • [ ] Figure out if it needs special handling, e.g., passing it as an argument to php instead of executing it directly.
  • [ ] Remove it from Limitations and known issues.

11/19/2024 - As discovered in https://github.com/php-tuf/composer-stager/pull/399, it will take a little more than just finding a PHAR to run it properly--at least on Windows.

TravisCarden avatar Apr 09 '24 20:04 TravisCarden

FYI @tedbow @phenaproxima: This could affect Automatic Updates if we find a lot of hosts have Composer installed with a .phar extension.

TravisCarden avatar Apr 09 '24 20:04 TravisCarden