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 99877F592 for ; Tue, 9 Jul 2013 02:58:21 +0000 (UTC) Received: (qmail 92037 invoked by uid 500); 9 Jul 2013 02:58:20 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 92009 invoked by uid 500); 9 Jul 2013 02:58:19 -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 91997 invoked by uid 99); 9 Jul 2013 02:58:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 02:58:18 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iclelland@google.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-ob0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 02:58:14 +0000 Received: by mail-ob0-f171.google.com with SMTP id dn14so6401035obc.16 for ; Mon, 08 Jul 2013 19:57:53 -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 :x-google-sender-auth:message-id:subject:to:content-type; bh=/cKvMyoCF3qXbwiBDTRXflKjEYzgxA0zvOdlQkfLqcQ=; b=D4G09ZP+SLC2G+aimEu9R/sleaqJNPe1ocaP+3dCF8ksTn+oFcmgB358RMDSxLmzcX /Vc824rsYGDstHmQqf0CQ1Gs0MbJP14i+Sn1aGIktHTAnNb16nyCyckDTkFHu6dXlJBF UepJsk/0GDEJ+QlRW+jwdQC0tAs2K29nMXAuPn5+iOaAWiz05TDLuPf5DYpNunY2jLjf M2GGIAUqV9v9fdCubuy69WlyBuRnsP5c4At0biElwVKBtEY80iW5inOwLFnGJpoVBltg DnOuanQv4UUhaBywDiqpAp5/fzP2pzQ24S+SIEaKZIzplAgQZZJ634BM/L+Kg01gaRfo Z4Bw== 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 :x-google-sender-auth:message-id:subject:to:content-type; bh=/cKvMyoCF3qXbwiBDTRXflKjEYzgxA0zvOdlQkfLqcQ=; b=V6HTl2sSIImCYUM8QoBrkAg1otEZI2TyorOW+ofCkTiH8k+2MJx6lsM6BkH2cbjxOf 2vB7Af6ofGeFhFoSZikLblJzvTAWfM4f0z7ORzevJWSHSFAX4IL5WuHmeNl3xhDe0fUI 6vk0IHvd++Y0WoSmWhY0vRZBzZ5RTia8hKVJA= X-Google-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 :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=/cKvMyoCF3qXbwiBDTRXflKjEYzgxA0zvOdlQkfLqcQ=; b=GPRrh46Pq86AeaazsgI76gX1bAnZFIHRvMz5kK0cf3bkZztBOC6yGGIlNgiPt92+Gu B39BehfFSQ3k7O22wdXnZfGxGk9Mc619tyC28RohCK576A13zGnvfZGhty133gQqWupZ +h939EwIreCqJVkbp1suFxOMsO76DKKZW2tWb1HS+qY5XvrNZLMcgl8xPVoPehdza127 VH7qMs43ZP2HOCxQck5tCx5jwls7qLFQ3Gz6AALZ4fTFxVvgmg4uGmMIdqT/ujZqL1xu VTenMt5s3x5WLEKyd9dMPo44/TfqiuenUsnnGLsQ4lD0vLMmQeUMgrtCbbRYOlrrYh21 S+KA== X-Received: by 10.182.79.68 with SMTP id h4mr22504399obx.68.1373338673405; Mon, 08 Jul 2013 19:57:53 -0700 (PDT) MIME-Version: 1.0 Sender: iclelland@google.com Received: by 10.182.106.196 with HTTP; Mon, 8 Jul 2013 19:57:33 -0700 (PDT) In-Reply-To: References: From: Ian Clelland Date: Mon, 8 Jul 2013 22:57:33 -0400 X-Google-Sender-Auth: FDdPOW9N42mmaNqpQgFdtWObOlQ Message-ID: Subject: Re: Errors following "WorkingWithThree" wiki To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=047d7b2e4da2c90dc304e10b5334 X-Gm-Message-State: ALoCoQkWYOG0l4rfvKLxY0xEXlzXKZyHyObOHFjXR1YXmny5Imm3l8F/LxU6S1qdX2qovZ11kRwV6VwA91+V4h2uu9b5v7sLriPpB6nM3QpMbhaJeYK5QzESdN2OGgQF0n/+gpT4eU5aIAN1EwBpnGzeybzV8mlb/Qjn43q9fYOyzYgIMgM8UKtyq509q43/01UWHCa8EMR6 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e4da2c90dc304e10b5334 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Jul 8, 2013 at 9:49 PM, Andrew Grieve wrote: > Yes! Most of us here have hit that exact problem, but I guess it hadn't > made it to the ML yet. > > It's because Android's version script reports the version by parsing it o= ut > of the comment in the cordova.js file. > That's exactly it -- the version script parses the comment and ends up with '2.7.0rc1', which is passed to semver. That, unfortunately, isn't a valid semantic version, at least according to semver.org. (2.7.0-rc1 would be, but that's not how it was tagged) The actual version in the JS file is a result of `git describe HEAD --tags`, and is reporting the hash, and the most-recently tagged version, looking back through history. In this case, 2.7.0rc1 is the most recent tag in trunk. (maybe it shouldn't have been; that tag should have been on the 2.7.x branch?) I think we can keep this tagging and versioning sort of sane now -- now that we have tools for automated release management. I'd propose, in addition to Andrew's suggestion of making the version script echo the hard-coded version (and we make coho write out the correct version somewhere), that when we cut a new release branch, we have coho automatically: - create a new branch off of master - name the branch, eg, 3.0.x - (if appropriate), tag an initial commit like 3.0.0-rc1, on the new branc= h - (new!) tag an initial commit like 3.1.0-alpha on the master branch This way, the very next versions of cordova.js that get generated would be described as '3.0.0-rc1-0-g' and '3.1.0-alpha-0-g', and it would be obvious to anyone looking at them what version of cordova they were intended for. With the current setup, cordova.js generated from those two branches would be described as something like '2.7.0-186-g' and '2.7.0-186-h', which is not as helpful as it could be -- I think we can do better, with the tools we have now. Ian > > This is completely wrong, since it's not even reporting the version of th= e > Android repo, but rather the version of the cordova-js version. > > You can work around it by editing the comment in the .js file, or just > having the version script echo a newer version. > > > How I think we should fix this problem is by: > 1. Have the version script hardcode the version within it (or just conver= t > it to a VERSION file) > 2. Have the create script generate the version script by reading the > VERSION file. If it says "dev", then use git describe to generate the > version > 3. Address CB-3216 so that the version script will be replaced with new > versions on upgrades. > > > > On Mon, Jul 8, 2013 at 6:33 PM, Filip Maj wrote: > > > I am going to look into this but you shouldn't have to run the cli, you > > can run plugman instead but I am not sure if that=C2=B9s the answer you= are > > looking for joe ;) > > > > On 7/8/13 2:07 PM, "Joe Bowser" wrote: > > > > >Hey > > > > > >I was looking for a quick way to add all the plugins, so I decided to > > >follow the "WorkingWithThree" wiki to set up a 3.0.0 Cordova project. > > >I got most of the way through the guide but ran into an error after > > >running this: > > > > > >../cordova-cli/bin/cordova plugin add > > >../cordova-mobile-spec/dependencies-plugin > > > > > >This is the error I got: > > > > > >[TypeError: Invalid Version: 2.7.0rc1] > > > > > >Any idea why this would happen? Does this have something to do with > > >how we get the version when we run git describe? It looks like I'm > > >going to have to install all the plugins manually or write my own > > >script. > > > > > >Side Note: It'd be great if we didn't have to rely on the CLI to do > > >everything, so that we're not totally SOL if/when we find issues with > > >the CLI. > > > > > --047d7b2e4da2c90dc304e10b5334--