+1 to keep cordova-cli working out of the box when not specifying a version. pinning everything will make cordova-cli more stable and controllable
As far of backtracking and stopping releases, the way I seet it plugins and platforms get voted, get released, posted to apache dist and npm and announced this should continue and keep releases going out as normal. having something mark latest in npm doesn't defined what's released, it's just a convenience for tagging, for example take npm@1.x npm@2.x and npm@3.x, only one version can be marked 'latest', all exist on npm 'dist-tags': { latest: '3.5.0', next: '3.5.1', 'latest-2': '2.14.12', 'v3.x-latest': '3.5.0', '3.x-latest': '3.5.0', '3.x-next': '3.5.1', 'v3.x-next': '3.5.1', 'next-2': '2.14.13', 'latest-1': '1.4.29' }, Cordova CLI and pinned things to Cordova-CLI doesn't defined the releases of the different components of the project. It just an utility with some brain tooling that knows what works with what. I think we should think on how to expose the dependency graph between the engines and plugins, today this seats only plugin.xml, I think we should see if we can duplicate this info into package.json that way is easier to access only this metadata to put together this dependency graph and let others figure what combinations will work. We can also look into leveraging a convention with creative dist-tags to do this. On Wed, Nov 25, 2015 at 10:56 PM Steven Gill <stevengil...@gmail.com> wrote: > These 5 plugins have been reverted: > > > - cordova-plugin-camera > - cordova-plugin-geolocation > - cordova-plugin-contacts > - cordova-plugin-file > - cordova-plugin-media > > > On Wed, Nov 25, 2015 at 2:45 PM, Steven Gill <stevengil...@gmail.com> > wrote: > > > haha of course. Well this will give build a chance to add cordova-android > > 5 support too then :) > > > > On Wed, Nov 25, 2015 at 2:41 PM, julio cesar sanchez < > > jcesarmob...@gmail.com> wrote: > > > >> "the user is expected to pin the plugin version", yeah, it's expected, > but > >> I've seen at least 3 questions on the phonegap build forum and one on > >> stackoverflow related to this, and there are a ton like "My app is > failing > >> now, I built it x time ago and it worked, I didn't change anything, so > you > >> broke it" because people don't pin the cli and the plugins > >> > >> 2015-11-25 23:28 GMT+01:00 Steven Gill <stevengil...@gmail.com>: > >> > >> > having trouble rolling latest back currently. npm seems to be having > >> issues > >> > with dist-tag. https://github.com/npm/npm/issues/10548 > >> > > >> > I'll revert as soon as I can. I've already pinged people at npm. > >> > > >> > On Wed, Nov 25, 2015 at 2:26 PM, Parashuram N <panar...@microsoft.com > > > >> > wrote: > >> > > >> > > +1 to having a way for pinning too. > >> > > > >> > > -----Original Message----- > >> > > From: Shazron [mailto:shaz...@gmail.com] > >> > > Sent: Wednesday, November 25, 2015 2:23 PM > >> > > To: dev@cordova.apache.org > >> > > Subject: Re: [DISCUSS] Revert Cordova plugins to work with default > >> pinned > >> > > versions > >> > > > >> > > +1 what Steve said. Let's make sure all stakeholders take note of > the > >> > > discuss threads for plugins, not just platforms, in the future so we > >> can > >> > > nip this in the bud. > >> > > > >> > > "Cordova should not be backtracking releases due to downstreams" -> > >> > > Steve's cli pinning proposal would solve the VS scenario in the > >> future, > >> > > would it not? > >> > > > >> > > On Wed, Nov 25, 2015 at 2:06 PM, julio cesar sanchez < > >> > > jcesarmob...@gmail.com> wrote: > >> > > > This has hit phonegap build users too as cordova android 5 isn't > >> > > > released there yet and people doesn't pin the plugin version > >> > > > > >> > > > 2015-11-25 22:38 GMT+01:00 Parashuram N <panar...@microsoft.com>: > >> > > > > >> > > >> I agree that we should have brought this up during the DISCUSS > >> phase. > >> > > >> > >> > > >> VS is preparing for a fix in the week of Dec 7 when we are > >> > > >> anticipating Cordova 6 with ios9 and marshmallow support. > >> > > >> > >> > > >> -----Original Message----- > >> > > >> From: Steven Gill [mailto:stevengil...@gmail.com] > >> > > >> Sent: Wednesday, November 25, 2015 12:46 PM > >> > > >> To: dev@cordova.apache.org > >> > > >> Subject: Re: [DISCUSS] Revert Cordova plugins to work with > default > >> > > >> pinned versions > >> > > >> > >> > > >> I think it is more reasonable to get users to explicitly update > >> their > >> > > >> cordova-android to 5 than it is to get people who are using > >> > > >> cordova-android@5 now to be explicit about adding plugins > versions > >> > > >> which are higher than what npm shows (assuming we set latest back > >> to > >> > > >> previous release). > >> > > >> > >> > > >> Most people want to and should be supporting marshmallow. > >> > > >> > >> > > >> In the case you describe above about installing the camera plugin > >> and > >> > > >> it failing, it isn't a silent failure. Users get notified that > the > >> > > >> version of camera doesn't support their version of android and > they > >> > > should update. > >> > > >> Users using cordova-android 5 don't get such a nice failure > message > >> > > >> for using older plugins that don't support the new permission > >> model. > >> > > >> Instead they realize at runtime. Much worse. > >> > > >> > >> > > >> Now, the reason why I am willing to revert the `latest` tag for > >> those > >> > > >> 5 plugins (file, media, camera, contacts, geolocation) to > previous > >> > > >> releases is the case you brought up in slack. Visual studio grabs > >> > > >> latest plugins and can't get a update out quickly. We can revert > >> > > >> those until we get cordova@6 out. > >> > > >> > >> > > >> I think this is more an issue with VS and less with cordova. > >> Cordova > >> > > >> should not be backtracking releases due to downstreams. The > discuss > >> > > >> thread for plugins came out 19 days ago. We have been chatting > >> about > >> > > >> this release for even longer than that! > >> > > >> > >> > > >> If we do this, I want to be very clear that it is a special > >> exception. > >> > > >> Cordova should not be doing this again. It is up to Visual studio > >> to > >> > > >> be prepared for releases. It is not cordova's responsibility. > >> > > >> > >> > > >> With pinning plugins landing in cordova@6, this hopefully won't > >> be an > >> > > >> issue anymore. I hope to get cordova@6 out in a couple of weeks. > >> At > >> > > >> that time, latest will once again be switched for those 5 > plugins. > >> VS > >> > > >> and other downstream, please be prepared for it. > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> Hi, > >> > > >> > >> > > >> The latest Cordova plugin release [1] has some plugins like > camera, > >> > > >> contacts, files, geolocation, etc. that require mailto: > >> > > >> cordova-android@5.0.0 to work. The latest released version of > >> > > >> Cordova-cli does not pin mailto: > >> > > >> cordova-android@5.0.0, but instead pins cordova-android@4.1.1. > >> > > >> > >> > > >> Scenario > >> > > >> - User adds android platform using cordova platform add android - > >> he > >> > > >> gets > >> > > >> cordova-anrdoid@4.1.1 > >> > > >> - User now adds the camera plugin - cordova plugin add camera - > >> gets > >> > > >> the version of the camera plugin that works only with > >> > > >> cordova-android@5.0 > >> > > >> > >> > > >> This combination does not work and the scenario breaks. > >> > > >> > >> > > >> I do understand that there are many folks who are already using > >> > > >> cordova-android@5 for marshmallow support, and that we need to > >> > > >> release the versions of plugins that support marshmallow. > However, > >> > > >> these folks already add the cordova-android@5.0 platform by > >> > > >> explicitly specifying a version number. Hence, it would be > >> reasonable > >> > > >> to expect them to also add the supported plugins by specifying a > >> > > version number. > >> > > >> For folks who still add platforms and plugins without specifying > >> > > >> version numbers, I think we should ensure that the scenario > >> continues > >> > > to work. > >> > > >> > >> > > >> > >> > > >> Fix > >> > > >> I think the way to fix this issue would be to still have the > >> verisons > >> > > >> of plugins that support cordova-android@5.0 released, but the > >> > "latest" > >> > > >> should point to the versions that cordova-cli has pinned. > >> > > >> > >> > > >> [1] > >> > > >> > >> https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fcord > >> > > >> ova.apache.org > >> %2fnews%2f2015%2f11%2f24%2fplugins-release.html&data=01 > >> > > >> %7c01%7cpanarasi%40microsoft.com > >> %7c85b4ca37be3146007dc608d2f5d96bb3%7 > >> > > >> > >> c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=r5p4htJsu3KVVOIl1rofr9IPJ > >> > > >> 5bASs6iubW8Md%2bb2hM%3d > >> > > >> > >> > > >> > >> --------------------------------------------------------------------- > >> > > >> To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org > >> > > >> For additional commands, e-mail: dev-h...@cordova.apache.org > >> > > >> > >> > > >> > >> --------------------------------------------------------------------- > >> > > >> To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org > >> > > >> For additional commands, e-mail: dev-h...@cordova.apache.org > >> > > >> > >> > > > >> > > > --------------------------------------------------------------------- > >> > > To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org > >> > > For additional commands, e-mail: dev-h...@cordova.apache.org > >> > > > >> > > > >> > > >> > > > > >