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 A9140172DD for ; Tue, 24 Mar 2015 21:22:16 +0000 (UTC) Received: (qmail 26330 invoked by uid 500); 24 Mar 2015 21:22:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 26289 invoked by uid 500); 24 Mar 2015 21:22:16 -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 26277 invoked by uid 99); 24 Mar 2015 21:22:16 -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 21:22:16 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stevengill97@gmail.com designates 209.85.192.47 as permitted sender) Received: from [209.85.192.47] (HELO mail-qg0-f47.google.com) (209.85.192.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 21:22:12 +0000 Received: by qgfa8 with SMTP id a8so10476045qgf.0 for ; Tue, 24 Mar 2015 14:20:21 -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=PKjvsnRDJLne0A+sr+x8I8NAYSD6Zo8IRqCLhjg096k=; b=Hx75P3BZ/cQ8BlmmI2+F4sYqK7oc9j94NkYkiW2DQc2jiC0TewLq+YDOImJPIylQF1 CNthvsP8GJU4KxXrqQR2D/V0nbvcnPkuHI4xlEvqPEZrvQ1YwY2MGFvocSoyTjTW9gK7 zh4feyib0qPkHyXJABeVZIlpi3nTNOnnGmALGLVEHIMj/75iaYexXz6v2CjnUaVrMXi3 usAdrqjVjFfu2YEsnOZKl54lcTV0dmIT9i0/h3LLPnl2kOUWilhVVMpEywM/wUUBsT1t UBiQy0bIvolyJpBgTLHFtq+KzNghjK/kvdQBjp/aiBMQTWdwg7KWjzamWeVxm1juau7Z DKMg== X-Received: by 10.55.55.4 with SMTP id e4mr12990127qka.97.1427232021277; Tue, 24 Mar 2015 14:20:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.187.72 with HTTP; Tue, 24 Mar 2015 14:20:01 -0700 (PDT) In-Reply-To: References: From: Steven Gill Date: Tue, 24 Mar 2015 14:20:01 -0700 Message-ID: Subject: Re: 'cordova plugin save' should also save plugin versions To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a1149047ea3f35c05120f5943 X-Virus-Checked: Checked by ClamAV on apache.org --001a1149047ea3f35c05120f5943 Content-Type: text/plain; charset=ISO-8859-1 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 > > --001a1149047ea3f35c05120f5943--