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

Compatibility with Composer v2.1.0 and later #555

Closed
ondrejmirtes opened this issue Jun 6, 2021 · 2 comments
Closed

Compatibility with Composer v2.1.0 and later #555

ondrejmirtes opened this issue Jun 6, 2021 · 2 comments

Comments

@ondrejmirtes
Copy link

Bug report

Question Answer
Box version Box version 3.11.1@83567c4 2021-01-02 09:53:51 UTC <!-- (box.phar -V or `composer show
PHP version 8.0.3
Platform with version e.g. Ubuntu/Windows/MacOS
Github Repo -

Composer v2.1.0 started including vendor/composer/installed.php file in InstalledVersions.php. This file is new and isn't whitelisted by Box (or maybe PHP-Scoper) to be included in the final PHAR, leading to errors like:

PHP Fatal error:  require(): Failed opening required 'phar:///home/runner/work/phpstan/phpstan/extension/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/installed.php' (include_path='.:/usr/share/php') in phar:///home/runner/work/phpstan/phpstan/extension/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/InstalledVersions.php on line 319
@ondrejmirtes
Copy link
Author

There was a similar problem before: #484

@theofidry
Copy link
Member

Should be now working with 3.15

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

No branches or pull requests

2 participants