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 D2CFD178EB for ; Tue, 24 Mar 2015 22:39:23 +0000 (UTC) Received: (qmail 69830 invoked by uid 500); 24 Mar 2015 22:39:23 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 69787 invoked by uid 500); 24 Mar 2015 22:39:23 -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 69776 invoked by uid 99); 24 Mar 2015 22:39:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 22:39:23 +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 (athena.apache.org: domain of Tim.Barham@microsoft.com designates 65.55.169.123 as permitted sender) Received: from [65.55.169.123] (HELO na01-bl2-obe.outbound.protection.outlook.com) (65.55.169.123) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 22:39:18 +0000 Received: from CO2PR03CA0034.namprd03.prod.outlook.com (10.141.194.161) by DM2PR0301MB0671.namprd03.prod.outlook.com (25.160.96.21) with Microsoft SMTP Server (TLS) id 15.1.118.21; Tue, 24 Mar 2015 22:38:56 +0000 Received: from BN1BFFO11FD043.protection.gbl (2a01:111:f400:7c10::1:140) by CO2PR03CA0034.outlook.office365.com (2a01:111:e400:1414::33) with Microsoft SMTP Server (TLS) id 15.1.118.21 via Frontend Transport; Tue, 24 Mar 2015 22:38:56 +0000 Received: from 064-smtp-out.microsoft.com (206.191.228.164) by BN1BFFO11FD043.mail.protection.outlook.com (10.58.144.106) with Microsoft SMTP Server (TLS) id 15.1.125.13 via Frontend Transport; Tue, 24 Mar 2015 22:38:53 +0000 Received: from SINPRD3002MB008.064d.mgd.msft.net ([169.254.2.16]) by SINPRD3002HT001.064d.mgd.msft.net ([141.251.55.14]) with mapi id 14.16.0478.000; Tue, 24 Mar 2015 22:38:51 +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: AQHQZkY85toLvTjYEEyfcfAcAYeaYZ0rwgWAgAAFtwCAACQWgIAAGfoAgAACNICAABKxgIAACVWAgAAVpg8= Date: Tue, 24 Mar 2015 22:38:50 +0000 Message-ID: References: , 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)(51704005)(199003)(252514010)(189002)(479174004)(13464003)(377454003)(164054003)(33656002)(2351001)(50466002)(23726002)(66066001)(107886001)(2656002)(47776003)(325944007)(19580405001)(6806004)(19580395003)(15974865002)(46406003)(77156002)(450100001)(62966003)(54356999)(76176999)(50986999)(2501003)(93886004)(106466001)(92566002)(2920100001)(22746005)(104016003)(102836002)(87936001)(2900100001)(55846006)(22756005)(86362001)(97756001)(106116001)(2950100001)(110136001)(86146001)(15975445007)(46102003)(79686002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB0671;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:DM2PR0301MB0671; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(5002010);SRVR:DM2PR0301MB0671;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0671; X-Forefront-PRVS: 0525BB0ADF X-OriginatorOrg: microsoft.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2015 22:38:53.9462 (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: DM2PR0301MB0671 X-Virus-Checked: Checked by ClamAV on apache.org +1 from me too (always save version, and allow automatic minor version upgr= ades). Gorkem - I'm currently doing some work in this area - I'm happy to make thi= s change while I'm there. ________________________________________ 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 wrote: > I'm in favor of alignment of 'plugin save' behavior with npm's as we > 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