-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support Composer 2.0 #111
Support Composer 2.0 #111
Conversation
I can't really say anything about the code change other than it looks fine to me. Regarding the version, I've put at on The rational is that, since Composer is going from v1 to v2 (major version change), it is allowed to be backward incompatible. This plugin might need to follow and also implement backward incompatible changes. That would mean support goes into the next major version for us as well. Since we are not (yet) at v1 that would mean @jrfnl Do you concur? Or is my reasoning to thin? (I'm having trouble making isolated decisions at the moment, so a second opinion on is appreciated). |
@Potherca My own reasoning was similar, which is why I was asking about the milestone. This PR doesn't break BC with Composer 1.x, but does contain a changed dependency, i.e. can be considered a "significant" enhancement, so I'm happy for it to be in My main concern about making this The other side of that argument is that I know that the next release for at least five external PHPCS standards (WordPressCS, PHPCompatibility - including all framework/polyfill based substandards, VariableAnalysis, Security, PHPCSExtra) will be a >= 1 major and that those will all include a change making this plugin a dependency of the standard. So there's that. |
As per https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer/stats#v0.5.0 ( you gotta click on "Versions" to get patch versions) it seems the bulk of people are still on 0.5, then 0.6.2 and 0.4.4 have a big chunk of users too. |
@Seldaek Thanks for that. I don't know why I couldn't find it. Glad to have the insight now. @mjrider @Potherca Seeing that approx 20% of users has so far upgraded to |
I would go for 0.7 because it is more then a bugfix |
Minimal changes to updated the plugin to support Composer 2.0 which is expected late May/beginning of June. Changes are based on guidance found in: * #108 * composer/composer#8726 * https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#for-integrators-and-plugin-authors Tested by danepowell and myself (Windows 7). Further testing would be very welcome! Fixes 108
abb3049
to
2cf2a33
Compare
Force pushed the same commit to trigger the Travis run on .com. |
Looks good to me. |
@jrfnl Thanks for the ping, with me starting work on @pdsinterop, this got shuffle to the bottom of the pile. Taking a look at things now. 👍 |
@Potherca Thanks for checking it out now. I think it would be a good idea to release this soonish, but most definitely before Composer gets to a 2.0-RC release. Do you agree ? And if so, what is needed to make that happen ? |
Already on it! Hold on... 🕕 |
@Potherca FYI: I've updated the milestones in the mean time to reflect the reality that the next release will be 0.7.0, not 0.6.3. |
I noticed, good work! (I was called away in the middle of my release activities, hence my delay). |
@Potherca No worries. Thanks for getting this done! |
@Potherca Is there a release tweet I can retweet ? |
I'm afraid not... We don't have/do official release Tweets (yet?). Feel free to create original material... |
Proposed Changes
Minimal changes to updated the plugin to support Composer 2.0 which is expected late May/beginning of June.
Tested by @danepowell and myself (Windows 7). Further testing would be very welcome!
Fixes #108
@mjrider @Potherca Should this be added to the
0.6.3
or0.7
milestone ?Related Issues
Changes are based on guidance found in: