Received: by 10.204.145.140 with SMTP id d12mr9119102bkv.6.1351791443321; Thu, 01 Nov 2012 10:37:23 -0700 (PDT) X-BeenThere: erlang-programming@googlegroups.com Received: by 10.204.147.90 with SMTP id k26ls3739612bkv.5.gmail; Thu, 01 Nov 2012 10:37:23 -0700 (PDT) Received: by 10.204.5.194 with SMTP id 2mr9117466bkw.7.1351791443080; Thu, 01 Nov 2012 10:37:23 -0700 (PDT) Received: by 10.204.5.194 with SMTP id 2mr9117465bkw.7.1351791443061; Thu, 01 Nov 2012 10:37:23 -0700 (PDT) Return-Path: Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104]) by gmr-mx.google.com with ESMTP id t1si761032bkt.1.2012.11.01.10.37.22; Thu, 01 Nov 2012 10:37:22 -0700 (PDT) Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org Received: from hades.cslab.ericsson.net (hades [192.121.151.104]) by hades.cslab.ericsson.net (Postfix) with ESMTP id 55CD45C1F8; Thu, 1 Nov 2012 18:37:14 +0100 (CET) X-Original-To: erlang-questi...@erlang.org Delivered-To: erlang-questi...@erlang.org Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by hades.cslab.ericsson.net (Postfix) with ESMTP id 5F0E55C002 for ; Thu, 1 Nov 2012 18:37:12 +0100 (CET) Received: by mail-pb0-f53.google.com with SMTP id wz12so1819272pbc.40 for ; Thu, 01 Nov 2012 10:37:11 -0700 (PDT) d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=aUTmSDdMpZQ6UdLGiJbvN0EYRTdSPKxPuuL68mkJFPE=; b=ajIWsnQn80HguMEEgzdevIJw/N7SKaQaN1mzzpH3WOYHCWnkIuOJZlqEJ0AWxpn0Ak fgI+9LIQ8XJTklT98l9+0vYN7wd3h6VejjqR9yPnGMf7Z0BykcC03oN8sqis60nBS/7U W2pUhFlA8+F/EBRKddNAzCw41CmzIP2Ag699A30KVURKLM3DzqP4KTeG2VKqpVlvtr/K WnfmSrNRNjeLtifhP0jSm3dGsuRc3dMpoRYqjGPeu5rAdZWUqFrWdkuzFBqOmnqzWQLG fiooOSHxCe1gxiwY7b68J1xAIWVveF/6JA7BTwb3iDR9pGEr+rZddWbi5wSbbBLDcNY2 Y6xQ== Received: by 10.68.200.227 with SMTP id jv3mr123983321pbc.162.1351791431258; Thu, 01 Nov 2012 10:37:11 -0700 (PDT) Received: from [172.28.0.157] ([74.3.100.30]) by mx.google.com with ESMTPS id hc4sm4329779pbc.30.2012.11.01.10.37.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Nov 2012 10:37:10 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1283) From: Seth Falcon In-Reply-To: Date: Thu, 1 Nov 2012 10:37:08 -0700 Message-Id: References: <2A5D9D78-C617-45EB-9C94-D42D437FB...@gmail.com> To: Tuncer Ayaz X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQn1IhU99oiY6zV0hPr+fupkpn9yEJSawAaVniKOFVbbYPn6fa35azu3yICL1f19UovcwLRY Cc: erlang-questi...@erlang.org Subject: Re: [erlang-questions] Rebar dependency recursion X-BeenThere: erlang-questi...@erlang.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Erlang/OTP discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: erlang-questions-boun...@erlang.org Sender: erlang-questions-boun...@erlang.org On Nov 1, 2012, at 10:07 AM, Tuncer Ayaz wrote: > On Thu, Nov 1, 2012 at 5:47 PM, Eric Merrit wrote: >> That being the case I think the default behavior should be the >> non-recursive option and you explicitly tell rebar to recurse with >> the `-r`. As a variation it will probably be worthwhile to support a >> list of applications to talk about app specific recursion. In this >> model `-r`/`--recursive` would do recursion as it normally does >> while `--recursive=app1,app2,app3` would only recurse into app1, >> app2 and app3 respectively. There is a branch implementing basic >> -r/--recursive linked in rebar/issues/303 (dss-fix-skip-deps). I'm +1 on a move to -r over skip_deps. Has there been discussion on the idea of commands defining recursive behavior themselves? There are some commands where recursion is never correct (e.g. creating a template or generating a release). And commands where I think lack recursion needs to be the default like get-deps. The challenge is that there are a number of commands where both behaviors are reasonable depending on your use (compile, clean, and eunit in particular). One idea for keeping some of the ease for initial build would be to provide two versions of some commands so that they can be composed: rebar get-deps rcompile eunit recursive: get-deps rcompile non-recursive: eunit If we don't arrive at a compromise and have to pick either skip_deps or -r, then I strongly favor -r. In either case, you may not get what you wanted. With default being recursive you will sometimes get a completely broken thing (create template) whereas with default non-recursive, some of the right thing will have happened. + seth _______________________________________________ erlang-questions mailing list erlang-questi...@erlang.org http://erlang.org/mailman/listinfo/erlang-questions