-
Notifications
You must be signed in to change notification settings - Fork 157
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
Update yahnis-elsts/plugin-update-checker
from 4.13 to 5.1
#1124
Conversation
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.
@dkotter After running composer install
, I am seeing modifications for the files:
- vendor/yahnis-elsts/plugin-update-checker/.gitattributes
- vendor/yahnis-elsts/plugin-update-checker/phpcs.xml
They appear to be white space/EOL type related -- are able to check if you get the same result as it would be good to avoid having to revert the changes each time if possible.
Based on manual testing, the changes seem to be working.
I don't get this myself, if it is just EOL things, wondering if there's a difference between our setups in regards to that? Edit: I guess also to add, looking at those files directly in the source repo, they appear to match what's in this PR. phpcs.xml and .gitattributes |
I suspect it's this -- it's something WordPress has needed to handle in the past in either the editor config or gitattributes files. |
I think we can resolve the differences between systems by enforcing the line ending types via the gitattributes file:
It may be worth implimenting an editor config file similar to the one used in wordpress-develop. |
I've added this now, though I still didn't get any differences in line endings in the files you saw, so not sure if this fixed things.
We already had an |
composer install is still causing dirty files for me. Let's merge we have now and I'll remember to do a checkout of the committed files each time I run composer install. I often have to do it for package-lock files so am used to it by now. |
Description of the Change
The Plugin Update Checker library we use is also used on a few other 10up projects. We need to ensure we are using the same version across all of these or you can end up with conflicts (especially when using composer to manage all dependencies of a project). This PR updates this library to the latest version, which will also be done in other repos that are using this library.
How to test the Change
distributor.php
file, set the version number to something lower, like 1.8.0Check for updates
link; also ensure the plugin is active)View version X.X.X details
link and ensure you see proper detailsView version X.X.X details
link and ensure you see proper detailsupdate now
link and ensure an update works (either from the plugins page or the main updates page). Note though that this will wipe out your version controlleddistributor
directory, so proceed with cautionChangelog Entry
Credits
Props @dkotter
Checklist: