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 D5532186D1 for ; Fri, 22 May 2015 21:25:37 +0000 (UTC) Received: (qmail 61738 invoked by uid 500); 22 May 2015 21:25:37 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 61705 invoked by uid 500); 22 May 2015 21:25:37 -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 61422 invoked by uid 99); 22 May 2015 21:25:37 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2015 21:25:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CFA3B181A27 for ; Fri, 22 May 2015 21:25:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.129 X-Spam-Level: *** X-Spam-Status: No, score=3.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id WU4LzR0pC1W1 for ; Fri, 22 May 2015 21:25:34 +0000 (UTC) Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 76B8342AA6 for ; Fri, 22 May 2015 21:25:34 +0000 (UTC) Received: by qkdn188 with SMTP id n188so22423735qkd.2 for ; Fri, 22 May 2015 14:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=VMIrJIl+kd27D9iPtWMFpz3i5Xo75bvJhQpZnFF6/cA=; b=AVJ5TG/vrucUQNotFaqERu6uYapwDFVzNEowOWfLVJtCS1z/22xeRATFy6LVEKNYbY i2871WWUdj0pDfJqtEm3EWGwd/RhrHdMtdnvAxH6y7LZxmjXzEsZTO3+YVrWWfYE3Dt5 kIDzWYEAfpT5apnskYC97kp80iHc+uigQA8vivjj3nafWepClOZ8tVG1G2tVn7NBG9Gh 8oUdXE/joidqP3Rz/bL1oRidavocfR2CbLN94JuG4ZtqfPijyh7HcMtv66+uQ4+4oBed SRAh2YXBLqCaR2tbZa4/1PHm5GbSIic8htFc8dRb9fpoxC80W+LbYa4KcTCXLS2N8JKs mEEQ== X-Received: by 10.55.33.147 with SMTP id f19mr22255965qki.92.1432329889065; Fri, 22 May 2015 14:24:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.187.37 with HTTP; Fri, 22 May 2015 14:24:28 -0700 (PDT) In-Reply-To: <8b57e922a4f74946878f42d1d408e621@HKNPR30MB020.064d.mgd.msft.net> References: <1431437821178.33930@microsoft.com> <8b57e922a4f74946878f42d1d408e621@HKNPR30MB020.064d.mgd.msft.net> From: Steven Gill Date: Fri, 22 May 2015 14:24:28 -0700 Message-ID: Subject: Re: [DISCUSS] Should pinned platforms allow for patch updates? To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a1144caee3d30650516b24a67 --001a1144caee3d30650516b24a67 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm okay with accepting patch changes without upgrading the tooling for now. If it works well and once we have more extensive testing in place, we can swap to accepting minor changes. -Steve On Fri, May 22, 2015 at 2:21 PM, Tim Barham wrote: > It's been a while since we discussed this, and I'd like to implement the > change. I'd like to get some consensus on whether we should go with > accepting patch changes only ('~1.2.3') or accepting minor version change= s > ('^1.2.3'). Should we go with patch changes only for now, and see how > things go? I wonder how good we will be at maintaining backward > compatibility of minor version changes :). > > -----Original Message----- > From: Nikhil Khandelwal [mailto:nikhilkh@microsoft.com] > Sent: Tuesday, May 12, 2015 4:31 PM > To: dev@cordova.apache.org > Subject: RE: [DISCUSS] Should pinned platforms allow for patch updates? > > > For platform releases, we would have to test it with the oldest version > of the CLI that could potentially pull it down. > > This one worries me a bit in terms of the testing burden and the version > matrix that we will need to support. > > Totally in favor of having patch versions be available right away without > requiring a tools release. > > Thanks, > Nikhil > > > -----Original Message----- > From: Shazron [mailto:shazron@gmail.com] > Sent: Tuesday, May 12, 2015 3:38 PM > To: dev@cordova.apache.org > Subject: Re: [DISCUSS] Should pinned platforms allow for patch updates? > > +1 on loosening the grip on platform pinning > > On Tue, May 12, 2015 at 3:21 PM, Steven Gill > wrote: > > I am totally on board with --save flag saving '^1.2.3' in config.xml > > since it mimics the behavior of npm --save. No need to change anything. > > > > The more I think about it, the more I think we should loosen our grips > > on platform pinning. As long as we are being semver compliant for all > > of our platforms, we shouldn't run into issues. > > > > I like the idea of changing our pins to `^1.2.3` so it respects major > only. > > It would grab the newest released version of the platform with the > > same major. This would only impact new projects or projects that are > > adding a platform for the first time. Existing projects would still > > have to cordova platform rm PLATFORM and cordova platform add PLATFORM > > to get the latest platform. > > > > One of the reasons we originally wanted to keep pinning was so we > > could easily help users when they tell us what version of Cordova they > > are having problems with. With the ability to add whatever version of > > platforms via `cordova platform add windows@VERSION`, knowing the cli > > version doesn't give us the details we want. Users can get installed > > platform versions with `cordova platform ls`. > > > > If we make this change, we should review our fetch/cache logic to see > > if it would grab the latest if an older version exists). > > > > We seem to have a fairly good track record with newer platform > > versions working with older CLI versions. Everytime we do a tools > > release, we could update the pinned versions to the latest released > > ones/newest version cli was tested with at release time. For platform > > releases, we would have to test it with the oldest version of the CLI > > that could potentially pull it down. > > > > What do others think? > > > > > > > > > > > > > > On Tue, May 12, 2015 at 6:36 AM, Tim Barham > > wrote: > > > >> ?Currently our pinned platforms are all in the form "1.2.3", which I > >> expect means we'll always get that exact version. Should we instead > >> use the form "1.2.x" to allow for patches without having to do a tools > release? > >> > >> > >> BTW... When you add a platform, and we use the pinned version of, > >> say, '1.2.3', if you use the '--save' flag, we'll save it to > >> config.xml as '^1.2.3', like npm currently doe (in other words... > >> 'allow any backwardly compatible version'). This means adding the > >> platform later could end up with a later version (even with the minor > >> version greater than 2 in this example). Perhaps we need to be > >> consistent here - if we change pinned version to use the form > >> '1.2.x', then should we save exactly that to config.xml? Or > >> alternatively should we use the form '^1.2.3' for our pinned version, > >> which will introduce a lot more variation, but will be more consistent > with how semver and npm work? > >> > >> > >> Thanks! > >> > >> > >> Tim > >> > >> > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > For additional commands, e-mail: dev-help@cordova.apache.org > > B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB > [ X =DC=9AX K K[XZ[ > ] ][ X =DC=9AX P =DC=99 =DD=98K \ X K =DC=99 B =DC=88 Y ] [=DB= =98[ [X[ K[XZ[ > ] Z [ =DC=99 =DD=98K \ X K =DC=99 B > --001a1144caee3d30650516b24a67--