-
-
Notifications
You must be signed in to change notification settings - Fork 688
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
Create PHAR with prefixes to avoid class and package version conflicts #177
Comments
Why not :) I like this approach: https://github.com/phpstan/phpstan-shim |
Well, as I can have a link for a |
Let's do this then :) could you prepare such repository and test it? |
Not sure to get time to learn how to build a .phar now. But if nobody does it, I'll do it one time. About the .phar story. What is the interest of a |
I think it's I never update my phar deps |
Feel free to re-open with PR or reference to demo repository. |
Reoped due to: #302 (comment) |
I'm making this priority, since the bin plugin doesn't work as expected |
Once we have phar support could we add this to phive? |
Sure. The phar is on hold now, I could not make it. |
As discusses @mssimi over hangouts, think of prefixing only: |
Tried php-scoper atm I cannot whitelist namespace easily. Edit: Does not prefix config files either. |
I'd consider using it as it cover 80 % cases. The rest need to be resolve our way:
|
What issues did you face when creating the phar? |
Why/how create the compiler?
Where to start
|
This comment was marked as off-topic.
This comment was marked as off-topic.
I've updated the link. Btw, how can Rector use PHPStan now without requiring whole prefixed phar? I didn't find https://packagist.org/?query=phpstan-src on packagist :/ |
This comment was marked as off-topic.
This comment was marked as off-topic.
The problem is, most of vendor will be duplicated/prefixed. |
This comment was marked as off-topic.
This comment was marked as off-topic.
There is symfony/console in PHPStan - prefixed, That means almost double the load of files in vendor compared to shared dependencies - now. |
This comment was marked as off-topic.
This comment was marked as off-topic.
It is, PHPStan (the .phar with prefixed) + Rector's vendor. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks for the link. It looked very random with commit and no PR to master.
I don't mind that much, but not sure about the community. I'll refer people to this if they complain :) |
The solution is closer than ever before... :) We got to overcome handful Symfony bugs at first, but now it looks good |
Resolved by #2373 Download and test at https://github.com/rectorphp/rector-prefixed |
rectorphp/rector-src@ca1cdfa [PHP 8.0] Include instant returns in match (#177)
Is a
.phar
build planned for this tool? I would be interested. :-)The text was updated successfully, but these errors were encountered: