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 B39861138F for ; Tue, 12 Aug 2014 20:47:37 +0000 (UTC) Received: (qmail 53439 invoked by uid 500); 12 Aug 2014 20:47:37 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 53401 invoked by uid 500); 12 Aug 2014 20:47: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 53387 invoked by uid 99); 12 Aug 2014 20:47:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2014 20:47:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shazron@gmail.com designates 209.85.216.46 as permitted sender) Received: from [209.85.216.46] (HELO mail-qa0-f46.google.com) (209.85.216.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2014 20:47:33 +0000 Received: by mail-qa0-f46.google.com with SMTP id v10so9267435qac.19 for ; Tue, 12 Aug 2014 13:47:12 -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=NUIBjpNCyP+liGmjkl5vv/UWBzkosnBdizTMNbLTvCQ=; b=PUOj8Sb4X88xfuUPXzb3PWFiLakPU1kfeUCZPkRnmPMKA8WWlVfr+sXda4iQ3zQbpl vOduU1/SzH56JcTAg0jRKPB8mjsz81M0aYtVunypCHDP1Pqets/KXsVwJWECfufokh7T ElJDH2SG5Upn1b5w1RUeVxgvi1YVvnrYb+Qf+HnDFKp5lE3gMz1q97jzr7/QJDMpllaJ vt0w25l0Lm0eh4hGK5js+EnxFYOACBki15KuoOGmTFnjkknNlbKYqdzG6oUoWb++ENJQ QRYP4+8TbZKnvADLe145ynbxDO1cKwBgJ3Bmeh6mks4fKg1rxIJSOju6mEwsnV+lr3zo r+bA== X-Received: by 10.140.19.105 with SMTP id 96mr390573qgg.34.1407876432720; Tue, 12 Aug 2014 13:47:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.43.229 with HTTP; Tue, 12 Aug 2014 13:46:32 -0700 (PDT) In-Reply-To: References: From: Shazron Date: Tue, 12 Aug 2014 13:46:32 -0700 Message-ID: Subject: Re: Remove VERSION file from repos To: "dev@cordova.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Believe me, I want to go all node -- but all in for all scripts -- which we don't have time to do yet (maybe 4.0?). But seeing that it's just replacing the contents of the current bash script with python code, it's the path of least resistance, and path of least potential conflict imo. No one will notice. On Tue, Aug 12, 2014 at 1:36 PM, Michal Mocny wrote: > Shaz, that's technically true, but how many users actually use that path > these days? > > I thought the last stats overwhelmingly suggest our users are drinking the > kool-aid and using cli, node, etc. > > > On Tue, Aug 12, 2014 at 4:19 PM, Shazron wrote: > >> Not if they are installed manually. It's not worth having some >> dependency just to read a version, that's nuts. >> >> On Tue, Aug 12, 2014 at 1:15 PM, Jesse wrote: >> > the non-cordova cli path depends on node to install/uninstall plugins >> > >> > @purplecabbage >> > risingj.com >> > >> > >> > On Tue, Aug 12, 2014 at 1:08 PM, Shazron wrote: >> > >> >> Of course I considered nodejs, but no, this is for the non-cordova CLI >> >> path, which does not need another dependency. >> >> >> >> On Tue, Aug 12, 2014 at 11:52 AM, Jesse >> wrote: >> >> > Yeah, if you are going to replace bash, replace it with nodejs! >> >> > >> >> > >> >> > @purplecabbage >> >> > risingj.com >> >> > >> >> > >> >> > On Tue, Aug 12, 2014 at 11:48 AM, Myles Borins wrote: >> >> > >> >> >> Have you considered writing a small node script to pass the json? >> This >> >> >> would make it as simple as requiring in the package json an piping >> the >> >> >> relevant info to stdout >> >> >> On Aug 12, 2014 11:47 AM, "Shazron" wrote: >> >> >> >> >> >> > Yeah I value life and my sanity - I'll probably replace the bash >> >> >> > script with python >> >> >> > >> >> >> > On Tue, Aug 12, 2014 at 11:40 AM, Lorin Beer > > >> >> >> wrote: >> >> >> > > one source for version information is better >> >> >> > > >> >> >> > > although parsing json with bash scripts seems janky >> >> >> > > >> >> >> > > >> >> >> > > On Tue, Aug 12, 2014 at 11:31 AM, Jesse > > >> >> >> wrote: >> >> >> > > >> >> >> > >> I think it still needs to exist in an output project ... which >> is >> >> not >> >> >> > >> (yet?) an npm project, and so does not have a package.json. >> >> >> > >> >> >> >> > >> The individual platform repos can get rid of it, they will just >> >> need >> >> >> to >> >> >> > >> modify the way they `create` new projects to read the value from >> >> >> > >> package.json and output it to NewProject/VERSION >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> @purplecabbage >> >> >> > >> risingj.com >> >> >> > >> >> >> >> > >> >> >> >> > >> On Tue, Aug 12, 2014 at 11:25 AM, Shazron >> >> wrote: >> >> >> > >> >> >> >> > >> > For iOS, the only file I can see that depends on this is: >> >> >> > >> > >> >> >> > >> > 1. >> >> >> > >> > >> >> >> > >> >> >> >> > >> >> >> >> >> >> https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/version >> >> >> > >> > >> >> >> > >> > Not sure of the alternative. >> >> >> > >> > >> >> >> > >> > This references it but can be removed: >> >> >> > >> > https://github.com/apache/cordova-ios/blob/master/bin/create >> >> >> > >> > >> >> >> > >> > >> >> >> > >> > On Tue, Aug 12, 2014 at 11:19 AM, Steven Gill < >> >> >> stevengill97@gmail.com >> >> >> > > >> >> >> > >> > wrote: >> >> >> > >> > > Most of our repos have a package.json. It keeps track of >> >> >> versions. I >> >> >> > >> > think >> >> >> > >> > > we should work towards removing the VERSION files from the >> >> repos >> >> >> we >> >> >> > >> can. >> >> >> > >> > > >> >> >> > >> > > Thoughts? >> >> >> > >> > > >> >> >> > >> > > This would require some changes to coho so it doesn't try to >> >> >> update >> >> >> > the >> >> >> > >> > > version file when doing releases. >> >> >> > >> > >> >> >> > >> >> >> >> > >> >> >> >> >> >>