Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA26C17C1C for ; Thu, 26 Mar 2015 00:04:51 +0000 (UTC) Received: (qmail 4437 invoked by uid 500); 26 Mar 2015 00:04:42 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 4395 invoked by uid 500); 26 Mar 2015 00:04:42 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 4359 invoked by uid 99); 26 Mar 2015 00:04:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 00:04:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Tim.Barham@microsoft.com designates 157.56.111.147 as permitted sender) Received: from [157.56.111.147] (HELO na01-bn1-obe.outbound.protection.outlook.com) (157.56.111.147) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 00:04:16 +0000 Received: from CO2PR03CA0044.namprd03.prod.outlook.com (10.141.194.171) by CY1PR0301MB0649.namprd03.prod.outlook.com (25.160.158.143) with Microsoft SMTP Server (TLS) id 15.1.118.21; Thu, 26 Mar 2015 00:04:13 +0000 Received: from BN1AFFO11FD007.protection.gbl (2a01:111:f400:7c10::130) by CO2PR03CA0044.outlook.office365.com (2a01:111:e400:1414::43) with Microsoft SMTP Server (TLS) id 15.1.99.9 via Frontend Transport; Thu, 26 Mar 2015 00:04:12 +0000 Received: from 064-smtp-out.microsoft.com ([206.191.228.164]) by BN1AFFO11FD007.mail.protection.outlook.com ([10.58.52.67]) with Microsoft SMTP Server (TLS) id 15.1.130.10 via Frontend Transport; Thu, 26 Mar 2015 00:04:10 +0000 Received: from SINPRD3002MB008.064d.mgd.msft.net ([169.254.2.16]) by SINPRD3002HT002.064d.mgd.msft.net ([141.251.55.15]) with mapi id 14.16.0478.000; Thu, 26 Mar 2015 00:04:06 +0000 From: Tim Barham To: "dev@cordova.apache.org" Subject: RE: 'cordova plugin save' should also save plugin versions Thread-Topic: 'cordova plugin save' should also save plugin versions Thread-Index: AQHQZkY85toLvTjYEEyfcfAcAYeaYZ0rwgWAgAAFtwCAACQWgIAAGfoAgAACNICAABKxgIAACVWAgAAVpg+AABPIAIAAELmAgAA1p4CAAKNJAIAAqlde Date: Thu, 26 Mar 2015 00:04:05 +0000 Message-ID: References: <941C7466-60E3-4BB3-8328-DF8C711C3820@gmail.com> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [58.173.149.75] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-EOPAttributedMessage: 0 Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 206.191.228.164 as permitted sender) receiver=protection.outlook.com; client-ip=206.191.228.164; helo=064-smtp-out.microsoft.com; Authentication-Results: spf=pass (sender IP is 206.191.228.164) smtp.mailfrom=Tim.Barham@microsoft.com; cordova.apache.org; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:206.191.228.164;CTRY:US;IPV:NLI;EFV:NLI;BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(438002)(13464003)(199003)(479174004)(377454003)(189002)(51704005)(252514010)(24454002)(41574002)(164054003)(86612001)(86362001)(86146001)(107886001)(2351001)(97756001)(33656002)(66066001)(15974865002)(93886004)(22756005)(22746005)(106466001)(106116001)(46406003)(55846006)(110136001)(46102003)(92566002)(77156002)(62966003)(450100001)(19580395003)(325944007)(19580405001)(50466002)(2501003)(54356999)(50986999)(76176999)(2656002)(2900100001)(102836002)(2950100001)(47776003)(23726002)(2920100001)(87936001)(15975445007)(79686002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0301MB0649;H:064-smtp-out.microsoft.com;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0649; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5002010)(5005006);SRVR:CY1PR0301MB0649;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0649; X-Forefront-PRVS: 0527DFA348 X-OriginatorOrg: microsoft.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2015 00:04:10.2510 (UTC) X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=72f988bf-86f1-41af-91ab-2d7cd011db47;Ip=[206.191.228.164];Helo=[064-smtp-out.microsoft.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0649 X-Virus-Checked: Checked by ClamAV on apache.org I'd like to get input on how 'cordova platform save' and 'cordova plugin sa= ve' commands (that save information about all installed platforms or plugin= s to config.xml) should work with regard to modifying existing version info= rmation in config.xml. (Background: I'm updating the --save option when adding/updating a specific= platform or plugin to always write out the version being installed, using = the "^x.x.x" notation. Consistent with 'npm install', I update an existing = entry even if its version string would match what we're installing - so if = the existing entry is '^3.2.1' and I'm installing '3.2.2', I update the ent= ry to '^3.2.2'). My question is: Should we do the same with the 'platform save' and 'plugin = save' commands: if there is an existing entry with a version that matches t= he version that's installed, do we update it or leave it alone? My feeling is to update it, since that behavior would be consistent with th= e --save flag. But an argument could also be made that we should leave it a= lone in this scenario. Thanks! Tim ________________________________________ From: agrieve@google.com [agrieve@google.com] on behalf of Andrew Grieve [a= grieve@chromium.org] Sent: Wednesday, March 25, 2015 11:44 PM To: dev Subject: Re: 'cordova plugin save' should also save plugin versions That's what we already do (CPR *is* an npm database) On Wed, Mar 25, 2015 at 12:00 AM, Michal Mocny wrote: > ..Also with the move to put plugins in npm, I think we would be directly > using npm's resolution of the version? > > On Tue, Mar 24, 2015 at 8:48 PM, Andrew Grieve > wrote: > > > On Tue, Mar 24, 2015 at 7:48 PM, Gorkem Ercan > > wrote: > > > > > > > > > > > On 24 Mar 2015, at 18:38, Tim Barham wrote: > > > > > > +1 from me too (always save version, and allow automatic minor versi= on > > >> upgrades). > > >> > > >> I like Andrew's idea, my only concern is implementing only a portio= n > of > > > the semver syntax. I personally would assume full semver support afte= r > > > seeing "^1.2.3" notation on config.xml > > > > I think we do already support all semver? Just tried: > > cordova plugin add "cordova-plugin-okhttp@>1 <3" > > and it worked fine. > > > > > > > > > > > > > Gorkem - I'm currently doing some work in this area - I'm happy to > make > > >> this change while I'm there. > > >> > > >> Sure, go ahead. I would not be able to get to it until next week. > > > > > > > > > ________________________________________ > > >> From: Steven Gill [stevengill97@gmail.com] > > >> Sent: Wednesday, March 25, 2015 7:20 AM > > >> To: dev@cordova.apache.org > > >> Subject: Re: 'cordova plugin save' should also save plugin versions > > >> > > >> Definitely agree with alignment with npm's save! :D > > >> > > >> On Tue, Mar 24, 2015 at 1:46 PM, Nikhil Khandelwal < > > >> nikhilkh@microsoft.com> > > >> wrote: > > >> > > >> I'm in favor of alignment of 'plugin save' behavior with npm's as w= e > > >>> expect developers to already familiar with that and in future, we > plan > > to > > >>> move to npm. > > >>> > > >>> I liked Andrew's idea of adding a specific version with allowing > minor > > >>> version upgrades to be automatic. > > >>> > > >>> As for shrink wrapping, for npm this means locking down the version > > >>> numbers of all modules and their dependencies: > > >>> https://docs.npmjs.com/cli/shrinkwrap . It does not look our > > >>> --shrinkwrap > > >>> option does that. > > >>> > > >>> -Nikhil > > >>> > > >>> -----Original Message----- > > >>> From: So, Byoungro [mailto:byoungro.so@intel.com] > > >>> Sent: Tuesday, March 24, 2015 12:40 PM > > >>> To: dev@cordova.apache.org > > >>> Subject: Re: 'cordova plugin save' should also save plugin versions > > >>> > > >>> +1 for making the shrinkwrap as the default for the > >>> This makes sure the users will restore the same version they saved > > >>> before. > > >>> > > >>> Byoungro So > > >>> SSG / DPD / Mobile Computing and Compilers Intel Corporation > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> On 3/24/15, 12:31 PM, "Gorkem Ercan" wrote= : > > >>> > > >>> > > >>>> I think the problem here is shrinkwrap behaviour is the expected > > >>>> because platforms behave that way. I guess we could just make > > >>>> shrinkwrap default and change the flag to --noshrinkwrap. > > >>>> -- > > >>>> Gorkem > > >>>> > > >>>> On 24 Mar 2015, at 13:58, Andrew Grieve wrote: > > >>>> > > >>>> On Tue, Mar 24, 2015 at 11:49 AM, Gorkem Ercan > > >>>>> > > >>>>> wrote: > > >>>>> > > >>>>> They are related but not same. > > >>>>>> > > >>>>>> CB-8594 asks to save the plugin version information during > "cordova > > >>>>>> plugin add --save". Right now we do not save version unless the > > >>>>>> command is "cordova plugin add --save --shrinkwrap". This > behaviour > > >>>>>> allows plugins to be restored to the latest possible version > > >>>>>> available if they are not explicitly shrinkwrapped. > > >>>>>> > > >>>>>> > > >>>>> How about doing what npm does, and always save the version, but > save > > >>>>> it as "^1.0.3", so that you still get updates, but not major > version > > >>>>> changes? > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>> As for CB-8733, "cordova plugin save" command can not save the > > >>>>>> version information even if it had wanted to because fetch.json = is > > >>>>>> missing that information. It is a bug. > > >>>>>> -- > > >>>>>> Gorkem > > >>>>>> > > >>>>>> On Tue, Mar 24, 2015 at 11:29 AM, Raymond Camden > > >>>>>> > > >>>>>> wrote: > > >>>>>> > > >>>>>> Is that a dupe of https://issues.apache.org/jira/browse/CB-8594= ? > > >>>>>>> > > >>>>>>> On Tue, Mar 24, 2015 at 10:19 AM, Edna Y Morales > > >>>>>>> > > >>>>>>> wrote: > > >>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> Currently, version info is not saved for plugins in the > > fetch.json. > > >>>>>>>> > > >>>>>>> That > > >>>>>> > > >>>>>>> needs to be added so that plugin version can be saved in the > > >>>>>>>> > > >>>>>>> config.xml. > > >>>>>> > > >>>>>>> It > > >>>>>>> > > >>>>>>>> should follow what 'cordova platform save' does. I created a > jira > > >>>>>>>> item > > >>>>>>>> > > >>>>>>> for > > >>>>>>> > > >>>>>>>> this: https://issues.apache.org/jira/browse/CB-8733 and opened > a > > >>>>>>>> pull > > >>>>>>>> request: https://github.com/apache/cordova-lib/pull/189. If > > >>>>>>>> someone > > >>>>>>>> > > >>>>>>> could > > >>>>>>> > > >>>>>>>> review it and provide any feedback. > > >>>>>>>> > > >>>>>>>> Thanks, > > >>>>>>>> Edna Morales > > >>>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> -- > > >>>>>>> > > >>>>>>> > > >>>>>> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > >>>>>> =3D=3D=3D > > >>>>>> =3D=3D=3D > > >>>>>> > > >>>>>>> Raymond Camden, Developer Advocate for MobileFirst at IBM > > >>>>>>> > > >>>>>>> Email : raymondcamden@gmail.com > > >>>>>>> Blog : www.raymondcamden.com > > >>>>>>> Twitter: raymondcamden > > >>>>>>> > > >>>>>>> > ------------------------------------------------------------------- > > >>>>>>> -- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > >>>>>>> For additional commands, e-mail: dev-help@cordova.apache.org > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>> > > >>>> > --------------------------------------------------------------------- > > >>>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > >>>> For additional commands, e-mail: dev-help@cordova.apache.org > > >>>> > > >>>> > > >>> > > >>> -------------------------------------------------------------------= -- > > >>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > >>> For additional commands, e-mail: dev-help@cordova.apache.org > > >>> > > >>> > > >>> -------------------------------------------------------------------= -- > > >>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > >>> For additional commands, e-mail: dev-help@cordova.apache.org > > >>> > > >>> > > >>> > --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > >> For additional commands, e-mail: dev-help@cordova.apache.org > > >> > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > > For additional commands, e-mail: dev-help@cordova.apache.org > > > > > > > > >= --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org