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 32C5617E97 for ; Wed, 25 Mar 2015 13:47:50 +0000 (UTC) Received: (qmail 76757 invoked by uid 500); 25 Mar 2015 13:46:51 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 76715 invoked by uid 500); 25 Mar 2015 13:46:51 -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 76702 invoked by uid 99); 25 Mar 2015 13:46:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 13:46:51 +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 agrieve@google.com designates 209.85.213.176 as permitted sender) Received: from [209.85.213.176] (HELO mail-ig0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 13:46:47 +0000 Received: by igcau2 with SMTP id au2so101309037igc.0 for ; Wed, 25 Mar 2015 06:44:56 -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=9U+WwUTmBjuhFJAHn65ENWtrRakiA1SO8lPF2NK6IIk=; b=h80yVAMaSeRJrVQYOHb+SFfYPmIqHDchyCi6uMoHflNpGBbOUdWE8nUPilE6Py8XfZ +qJ4KMrTrjxxcUe4VgTdGxmcPNMv1GjCYMlYj+WH1o4FlZ9RAIFKavxlVqRnaLvmGxp4 Rx/sCpm8yfsuXJb/vfqLN6V+NAzemRHUxxxytzO/lvCJ3WHoQl2OoeY4DP6oG1txELgk ZNyp2UWuBFk9Ls2rgaJcx571eJsB5TShG/uMrZDuZttxGnXGppvs+Ck8Z3KGe6cIUGoS WpRLK8pyiVZ4ASHKteInORAS5WQFfDo4rUmqQPlz7OKnaVm/bkrOjMrV24GKX707U8xR vpiQ== 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=9U+WwUTmBjuhFJAHn65ENWtrRakiA1SO8lPF2NK6IIk=; b=Bj/dKPD82xJafTJrU3uUf/f3gO5VEc5s8NyDvVW4LZF+he7aQcIzsCfmGhciRpUKJ6 6aiyj4qswX9FRQET19e7MatutXYeUhwUPQAMvCFepobOrU0eMNRKg0WfEmD7kQ6UGV62 XsKdFk7T5W9Vfh1GqSNIbytqRWIEXxdAOtL8k= 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=9U+WwUTmBjuhFJAHn65ENWtrRakiA1SO8lPF2NK6IIk=; b=XP6j2RYvbT6OfLF5FJRdRvgW2dJl7uV5khYBeFGF7GoaDMHPbNBKsKs/ATwpcWpbjo aCxSniKTh4uf9VkFhO/FdCIlbzHPhbTtYgR1y5svPq+wUBs76+75JM2VJ2Lke2ehGN/H SuX/44Ge1gTqN/ImCMkKPKMPy77DkcCyJwDtRIGK4arIciaXylkABGNbm0h8EtSeXxir MqXqxLlTkEFUA5Z1kQ2FJypind4kBlK+iokGxJC3cfF6UfeUrNdvdpEGJMuZLuw2fZeX oQF+DcCabrVanhB4JhSn/NP5Q3PSS/PHiHgrvlTa5rCeK4LQusCCav6zS9G1bp+wbTTI gfJg== X-Gm-Message-State: ALoCoQmlhjdze9BYmo9L55+9xH6nmZpC23cvQdkzMfSvJHCc+CcAQbgf6j1y4axCawrngksnDzqk X-Received: by 10.43.173.70 with SMTP id ob6mr31510054icc.25.1427291096606; Wed, 25 Mar 2015 06:44:56 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.36.3.14 with HTTP; Wed, 25 Mar 2015 06:44:36 -0700 (PDT) In-Reply-To: References: <941C7466-60E3-4BB3-8328-DF8C711C3820@gmail.com> From: Andrew Grieve Date: Wed, 25 Mar 2015 09:44:36 -0400 X-Google-Sender-Auth: j7aw4NvRTVl_TJ-mDaZXA7bJ7Fg Message-ID: Subject: Re: 'cordova plugin save' should also save plugin versions To: dev Content-Type: multipart/alternative; boundary=001a11c3b5a8ce263d05121d1a97 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3b5a8ce263d05121d1a97 Content-Type: text/plain; charset=UTF-8 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 version > > >> upgrades). > > >> > > >> I like Andrew's idea, my only concern is implementing only a portion > of > > > the semver syntax. I personally would assume full semver support after > > > 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 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 > > >>> > > >>> > > >>> > --------------------------------------------------------------------- > > >> 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 > > > > > > > > > --001a11c3b5a8ce263d05121d1a97--