Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 76651 invoked from network); 24 Jul 2009 18:54:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jul 2009 18:54:02 -0000 Received: (qmail 90659 invoked by uid 500); 24 Jul 2009 18:55:07 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 90610 invoked by uid 500); 24 Jul 2009 18:55:07 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 90600 invoked by uid 99); 24 Jul 2009 18:55:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 18:55:07 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of djspiewak@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-yx0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 18:54:59 +0000 Received: by yxe3 with SMTP id 3so3351905yxe.19 for ; Fri, 24 Jul 2009 11:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=ITy5fbkv47VnSYyWNxS7uLFm8PPyjAGYmT2NQ3btjYU=; b=P5buweYMJqyf3d2o9Rmzz8wIc/mAPPDhuKTY5Khd5Bk0ky7/0a+HsA4BXnpG8pqYZY dH6flfBsS5sQdnPAQ0SVnifrLNwixx6YtrrWFBHdkUHcJoRRamSawl11g8d8zbt0Sbh1 R1IErQWnSHyDW+ToO9YGfbpPTMmoNJKi0XAC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=ZPUCOWHRMQm/GJfWErglhU1bkH/9ZEpJDJ8ohfbUWhpOOVgHmJrJEHRCVFenv0f9M/ P2NCa9FcIj6FOeAD6tG6JraKPjdL+YvnlXO9L2QwZl2TxxIS2sQl9NixIKplftphJzBB ZWHL8OIHy+TwzIhzowub45L1eaYiMjcdkqPhw= MIME-Version: 1.0 Received: by 10.150.133.14 with SMTP id g14mr6624829ybd.136.1248461678084; Fri, 24 Jul 2009 11:54:38 -0700 (PDT) In-Reply-To: <5037b6e40907241152o7bf3e9b9ne5e918b5f00cfcb4@mail.gmail.com> References: <5c99d0330907240725o5f3a842amf1922b63c2a8ddc9@mail.gmail.com> <5c99d0330907240746p356fd902u74c6b88eb37b551@mail.gmail.com> <4c1d6a900907241056q2a1d1b23oe3f3d9200bf32743@mail.gmail.com> <5c99d0330907241100y63b93384n53ac73c73562fea@mail.gmail.com> <5037b6e40907241134g6beb2fcch18881521616fd88a@mail.gmail.com> <5c99d0330907241142q5deb06eam84efa1c7ffc3afc0@mail.gmail.com> <5037b6e40907241152o7bf3e9b9ne5e918b5f00cfcb4@mail.gmail.com> From: Daniel Spiewak Date: Fri, 24 Jul 2009 13:54:18 -0500 Message-ID: <5c99d0330907241154x50d70379m6e8e3a1b203d8fc7@mail.gmail.com> Subject: Re: With git, only buildfiles located at the root of the repository may be used. To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=000e0cd47ea0d6873b046f782268 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd47ea0d6873b046f782268 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I'm out of my depth here (since I don't know anything about the release core). Would someone else mind taking care of this? Daniel On Fri, Jul 24, 2009 at 1:52 PM, Assaf Arkin wrote: > On Fri, Jul 24, 2009 at 11:42 AM, Daniel Spiewak >wrote: > > > I agree (I think). However, just for the sake of consistent behavior, > > shouldn't we keep the Git detection recursive? (my fix) As I said, > that's > > effectively how SVN detection behaves. > > > Or we could fix SVN detection to be consistent. The buildfile is supposed > to reside at the root of your project, which is where you would find the > .git file, so I would say the Git behavior is correct but SVN is broken. > > Assaf > > > > > > > > Daniel > > > > On Fri, Jul 24, 2009 at 1:34 PM, Assaf Arkin wrote: > > > > > On Fri, Jul 24, 2009 at 11:00 AM, Daniel Spiewak > > >wrote: > > > > > > > I'm a little confused. Do we need to revert my "fix"? To me, it > seems > > a > > > > little more natural that the detection would work regardless of > > location. > > > > For one thing, just about every Buildr task functions from any > project > > > > directory. For another, the SVN repo detection will work regardless > of > > > > sub-directory (just by virtue of how SVN works). > > > > > > > > > You can buildr release from any directory, since it switches to the > root > > > directory first, then runs the task from there. The issue is: is it a > > good > > > idea to run the release cycle (commit, tag, etc) on a sub-tree of your > > > repository? Like Alexis said, the feature was to not allow that (you > > > probably want to use git submodule or git subtree). > > > > > > Assaf > > > > > > > > > > > > > > > > > > > > > Daniel > > > > > > > > On Fri, Jul 24, 2009 at 12:56 PM, Alexis Midon < > alexismidon@gmail.com > > > > >wrote: > > > > > > > > > FYI at the time of the 'Git release' implementation, it was a > feature > > > ;) > > > > > To test whether or not git was the scm, the first impl draft > executed > > a > > > > git > > > > > command from the current dir, but we changed it to 'test -d .git' > to > > > make > > > > > sure the release does not take place in a module of the project, > > which > > > > > would > > > > > be obviously wrong. > > > > > Antoine's case is different, but I'm afraid your fix won't prevent > > from > > > > > releasing from a module. > > > > > > > > > > > > > > > > > > > > On Fri, Jul 24, 2009 at 7:46 AM, Daniel Spiewak < > djspiewak@gmail.com > > > > > > > > wrote: > > > > > > > > > > > Fixed in r797501. > > > > > > > > > > > > For the record, the problem was that we were basing our Git > > detection > > > > off > > > > > > of > > > > > > whether or not the *current* directory contains .git/config. > This > > > > > > paralleled our detection of SVN (which checks CWD for .svn), but > > only > > > > > > worked > > > > > > if we happened to be cd'd into the root of the Git repository. I > > > have > > > > > > adjusted the implementation so that our detection of Git > > repositories > > > > is > > > > > > recursive up to the root. If someone happens to have Windows > > handy, > > > it > > > > > > would be best to make sure this works properly on that platform. > > > > > > > > > > > > Daniel > > > > > > > > > > > > On Fri, Jul 24, 2009 at 9:25 AM, Daniel Spiewak < > > djspiewak@gmail.com > > > > > > > > > > wrote: > > > > > > > > > > > > > This is a trivial little bug. I'm working on fixing it as we > > > speak. > > > > > > > > > > > > > > Daniel > > > > > > > > > > > > > > > > > > > > > On Fri, Jul 24, 2009 at 7:31 AM, Antoine Toulme < > > > > > antoine@lunar-ocean.com > > > > > > >wrote: > > > > > > > > > > > > > >> I tried setting a separate project in a git repository, just > > > because > > > > > it > > > > > > >> was > > > > > > >> less hassle than maintaining two git repositories. > > > > > > >> The structure is as follows: > > > > > > >> /.git > > > > > > >> /Buildfile <-- the main Buildfile > > > > > > >> /jetty > > > > > > >> /jetty/Buildfile <-- a secondary Buildfile. The lifecycle of > > that > > > > > > project > > > > > > >> should be very different from the main project, although the > > main > > > > > > project > > > > > > >> depends on it. > > > > > > >> > > > > > > >> When trying to do a release, I cd'ed to the jetty directory > and > > > > typed > > > > > > >> buildr > > > > > > >> release. Here is the output (with --trace): > > > > > > >> > > > > > > >> buildr release --trace > > > > > > >> (in /Users/antoine/w/cloud-build/jetty, development) > > > > > > >> ** Invoke jetty (first_time) > > > > > > >> ** Execute jetty > > > > > > >> ** Invoke > > > > > > >> > > > /Users/antoine/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar > > > > > > >> (first_time, not_needed) > > > > > > >> ** Invoke > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Users/antoine/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar > > > > > > >> (first_time, not_needed) > > > > > > >> ** Invoke > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Users/antoine/.m2/repository/org/apache/ant/ant-trax/1.7.1/ant-trax-1.7.1.jar > > > > > > >> (first_time, not_needed) > > > > > > >> ** Invoke > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/java > > > > > > >> (first_time, not_needed) > > > > > > >> mkdir -p /Users/antoine/w/cloud-build/jetty/target/tmpdir > > > > > > >> ** Invoke jetty > > > > > > >> ** Invoke release (first_time) > > > > > > >> ** Execute release > > > > > > >> Buildr aborted! > > > > > > >> Unable to detect the Version Control System. > > > > > > >> > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/build.rb:433 > > > > > > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in > `call' > > > > > > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in > > > `execute' > > > > > > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in > `each' > > > > > > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in > > > `execute' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:633:in > > > > > > >> `invoke_with_call_chain' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in > > > > > > >> `synchronize' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in > > > > > > >> `invoke_with_call_chain' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:614:in > > > > > > >> `invoke' > > > > > > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in > > > > > `invoke_task' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in > > > > > > >> `top_level' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in > > > > > > >> `each' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in > > > > > > >> `top_level' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:499:in > > > > > > >> `standard_exception_handling' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:223:in > > > > > > >> `top_level' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:138:in > > > > > > >> `run' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:499:in > > > > > > >> `standard_exception_handling' > > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in > > > > > > >> `run' > > > > > > >> /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/bin/buildr:19 > > > > > > >> /usr/bin/buildr:19:in `load' > > > > > > >> /usr/bin/buildr:19 > > > > > > >> > > > > > > >> Is there anything I can do about this ? For now I'll use > "buildr > > > > > > upload", > > > > > > >> it > > > > > > >> should do just fine. > > > > > > >> > > > > > > >> It looks like there is a good possibility that I am abusing > the > > > > system > > > > > > >> here. > > > > > > >> > > > > > > >> Thanks, > > > > > > >> > > > > > > >> Antoine > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --000e0cd47ea0d6873b046f782268--