-
Notifications
You must be signed in to change notification settings - Fork 179
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
Prefix Composer Dependencies #4543
Conversation
Size Change: 0 B Total Size: 1.33 MB ℹ️ View Unchanged
|
e56381f
to
b502c90
Compare
60bc23b
to
6e78b55
Compare
This comment has been minimized.
This comment has been minimized.
6e78b55
to
d7b3057
Compare
539b27a
to
9c31977
Compare
1f5f761
to
cdb6b26
Compare
9c31977
to
99896bd
Compare
cdb6b26
to
da5c804
Compare
99896bd
to
b3db291
Compare
@westonruter @schlessera @spacedmonkey I feel like this is now ready for initial review, so I'd love to get your feedback. Please note that this PR is based on #4513 and solves the conflict resolving part of that PR. @felixarntz FYI I added you as a reviewer in case you have some feedback for us on this based on prior art in Site Kit. The Site Kit implementation was certainly a good inspiration, although I went for an easier route heree. |
fa851d0
to
fb1b47d
Compare
Codecov Report
@@ Coverage Diff @@
## add/amp-wp #4543 +/- ##
==============================================
- Coverage 75.12% 75.04% -0.09%
==============================================
Files 888 894 +6
Lines 15518 15782 +264
==============================================
+ Hits 11658 11843 +185
- Misses 3860 3939 +79
Flags with carried forward coverage won't be shown. Click here to find out more.
|
ce6e207
to
85fef9e
Compare
e0194db
to
cb8c302
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never used php-scoper before, but LGTM.
cb8c302
to
ad2a148
Compare
ad2a148
to
05ce6e8
Compare
Summary
Prefixes dependencies to avoid conflicts with the AMP plugin and other plugins using these dependencies.
Relevant Technical Choices
civicrm/composer-downloads-plugin
to work around PHP version mismatch issuesthird-party
andincludes
makes building the plugin ZIP file much fastercomposer validate
CI step as it doesn't work withmcaskill/composer-exclude-files
To-do
ClassLoader
compatibility issuesSee PSR-0/4 dependencies are not correctly prefixed humbug/php-scoper#355, PSR-4 loader conflict with older implementation composer/composer#3852, https://github.com/dangoodman/composer-for-wordpress, https://gist.github.com/polevaultweb/de44d747b57191a851947d5f5175e922
User-facing changes
N/A
Testing Instructions
composer install
or check out this branch on the QA siteAddresses one aspect of #4513