-
Notifications
You must be signed in to change notification settings - Fork 812
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
changelogger, stub-generator: Simplify bin by dropping Composer <2.2 support #41876
changelogger, stub-generator: Simplify bin by dropping Composer <2.2 support #41876
Conversation
…support Composer 2.2 added a global `$_composer_autoload_path` that points to the autoloader. We can simplify the bin files significantly by requiring this Composer version and using that constant instead of trying to guess where the autoloader lives. This also requires various tools be updated to run changelogger via the symlink added in `vendor/bin/` rather than trying to use `bin/` directly.
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Beta plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Debug Helper plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Backup plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Vaultpress plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Search plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Social plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Starter Plugin plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Videopress plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Super Cache plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Mu Wpcom plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Inspect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Automattic For agencies client plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Classic Theme helper plugin plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
…and-stub-generator-require-composer-2-2
…support (#41876) Composer 2.2 added a global `$_composer_autoload_path` that points to the autoloader. We can simplify the bin files significantly by requiring this Composer version and using that constant instead of trying to guess where the autoloader lives. This also requires various tools be updated to run changelogger and stub-generator via the symlink added in `vendor/bin/` rather than trying to use `bin/` directly.
Proposed changes:
Composer 2.2 added a global
$_composer_autoload_path
that points to the autoloader. We can simplify the bin files significantly by requiring this Composer version and using that constant instead of trying to guess where the autoloader lives.This also requires various tools be updated to run changelogger via the symlink added in
vendor/bin/
rather than trying to usebin/
directly.Other information:
Jetpack product discussion
None
Does this pull request change what data or activity we track or use?
Testing instructions: