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 0A142178CA for ; Tue, 24 Mar 2015 22:38:23 +0000 (UTC) Received: (qmail 67130 invoked by uid 500); 24 Mar 2015 22:38:22 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 67088 invoked by uid 500); 24 Mar 2015 22:38:22 -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 67073 invoked by uid 99); 24 Mar 2015 22:38:22 -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:38:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mmocny@google.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-yk0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 22:38:18 +0000 Received: by ykek76 with SMTP id k76so4375360yke.0 for ; Tue, 24 Mar 2015 15:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=Y07bZpyGvTfLeg/KqUN/Mh7fmwrePZVBY+NZHE8igmY=; b=ZhbKg/K5BTJ229V0spP5HqtOmJnXvwUYgR/LHVD/y62qlb/Ra2cxyohRwcd+oCVCOU l38Qz9RfByoonto5Fd4rCrMARvXDJWG7Tylq8azHpTGzuyXls9AomOCWpwHOhyHeYO1L Qz0Ycd5AJpXc5wN9HfnUfjGd5HIs2OJF0Q88aP+RWxarzCtOCdrjpnJws/DdTaKlJ56d c1xtMEek679DlDd+3D0/9YXZeNag8/Xo/cnKEUesnHdkjX2cYBz8zavcJr0hfDI/Bw07 FCIJb04+dr44+eaPD5KzgDgkaNyzOYbihlGWl4m4IuVWMCuFQ9ZDhE8kZnvlNfGq3oHv gp8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=Y07bZpyGvTfLeg/KqUN/Mh7fmwrePZVBY+NZHE8igmY=; b=aPVNRBsF5z+BBEUNDSRhBAGmKMy3YDCeYJ8sIt4ZmhmiFEIWin1apsOJxZqQSK2VXx aFv0Lb8E3DoFNtrkNiIU6pAq5/cQkvjTqD89Hh5dPHkGsPxrmXocS5YHsP6dmIKrfnPc bPKUIBNULtvxmAXLG7YrFuIBA6iN6sXCBPKyM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=Y07bZpyGvTfLeg/KqUN/Mh7fmwrePZVBY+NZHE8igmY=; b=PRt0sPdsMaSkvS3+9mYVpoSHqsFo0Heij9Ge4l86F6QDVMOnwdarg+OEP+zlJh5pMC Jha5V2B7BOCgj/HObOdYHt8GOIx5qz4jenDglSSNvMcYvzW15pzcA/YMc5h0fP2n7bHK pyNtGJ6+jWkU+lkcJTTbBENdzb+B1HKOGbld6ObIs8Ul++UsV9dYlAN5IuAdVCNS/1OY VpEvYzBIytNFGSxZ0m/FGdFh7BEpkWSF4/vP5RtgwSXO+hmoAxeDDJgGjiYw7gXss4r/ eteNgSkMP8SLQhSXYnV/L634UfZwsHsuf1Nod2NZeHCkxmjLotmXME7NpGFs/Qtxam8G NbWQ== X-Gm-Message-State: ALoCoQmeaiHQLNMZLLTbkU8A7JkHa0n0eeHUSB3AQUJhkeuPhhQF14uNWYWNrn8ZPcHc+rILt3Ov X-Received: by 10.52.65.233 with SMTP id a9mr5262175vdt.42.1427236587970; Tue, 24 Mar 2015 15:36:27 -0700 (PDT) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.52.1.229 with HTTP; Tue, 24 Mar 2015 15:36:07 -0700 (PDT) In-Reply-To: References: From: Michal Mocny Date: Tue, 24 Mar 2015 18:36:07 -0400 X-Google-Sender-Auth: eHQ7lpiYDsNvG1LNV9bMMk0ycSM Message-ID: Subject: Re: 'cordova plugin save' should also save plugin versions To: dev Content-Type: multipart/alternative; boundary=20cf307f3b04d63a8b0512106981 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307f3b04d63a8b0512106981 Content-Type: text/plain; charset=UTF-8 Another +1 to do-as-npm-does. Both because of existing developer expectations, and because the trend is to move towards npm-isms and it would be a disservice down the road to change the behaviour. Any fork from what npm does should have a strong reason, and not just a prefer-it-this-way, imho. -Michal On Tue, Mar 24, 2015 at 5:20 PM, Steven Gill wrote: > 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 > > >>>> > > >>>> > > >>>> > > >>>> -- > > >>>> > > >>> > > >>>===================================================================== > > >>>=== > > >>>=== > > >>>> 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 > > > > > --20cf307f3b04d63a8b0512106981--