You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2023/07/14 20:12:08 UTC

[arrow] branch main updated: GH-36687: [R] Add correct branch name to autobrew formulae to facilitate local testing (#36689)

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 1bee64384c GH-36687: [R] Add correct branch name to autobrew formulae to facilitate local testing (#36689)
1bee64384c is described below

commit 1bee64384c7ea9513cdd2fc48e2a385e51011ed4
Author: Dewey Dunnington <de...@voltrondata.com>
AuthorDate: Fri Jul 14 17:12:00 2023 -0300

    GH-36687: [R] Add correct branch name to autobrew formulae to facilitate local testing (#36689)
    
    ### Rationale for this change
    
    It is currently not possible to recreate an autobrew build locally by following the instructions in the comments. This fixes the local copies of the upstream formulas and the instructions so that future debuggers can recreate an autobrew build.
    
    ### What changes are included in this PR?
    
    The branch `master` no longer exists and is the default value. This PR adds the revised default branch name ("main").
    
    ### Are these changes tested?
    
    No nightly test covers this because this value would be overwritten to test specific commits anyway.
    
    ### Are there any user-facing changes?
    
    No.
    * Closes: #36687
    
    Authored-by: Dewey Dunnington <de...@voltrondata.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/tasks/homebrew-formulae/autobrew/apache-arrow-static.rb | 2 +-
 dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb        | 2 +-
 r/configure                                                 | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev/tasks/homebrew-formulae/autobrew/apache-arrow-static.rb b/dev/tasks/homebrew-formulae/autobrew/apache-arrow-static.rb
index c0df6a3217..4586649d0c 100644
--- a/dev/tasks/homebrew-formulae/autobrew/apache-arrow-static.rb
+++ b/dev/tasks/homebrew-formulae/autobrew/apache-arrow-static.rb
@@ -25,7 +25,7 @@ class ApacheArrowStatic < Formula
   # Uncomment and update to test on a release candidate
   # mirror "https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-8.0.0-rc1/apache-arrow-8.0.0.tar.gz"
   sha256 "9948ddb6d4798b51552d0dca3252dd6e3a7d0f9702714fc6f5a1b59397ce1d28"
-  head "https://github.com/apache/arrow.git"
+  head "https://github.com/apache/arrow.git", branch: "main"
 
   bottle do
     sha256 cellar: :any, arm64_big_sur: "ef89d21a110b89840cc6148add685d407e75bd633bc8f79625eb33d00e3694b4"
diff --git a/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb b/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
index c09436d777..a5194eea3f 100644
--- a/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
+++ b/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb
@@ -21,7 +21,7 @@ class ApacheArrow < Formula
   homepage "https://arrow.apache.org/"
   url "https://www.apache.org/dyn/closer.lua?path=arrow/arrow-12.0.1.9000/apache-arrow-12.0.1.9000.tar.gz"
   sha256 "9948ddb6d4798b51552d0dca3252dd6e3a7d0f9702714fc6f5a1b59397ce1d28"
-  head "https://github.com/apache/arrow.git"
+  head "https://github.com/apache/arrow.git", branch: "main"
 
   bottle do
     cellar :any
diff --git a/r/configure b/r/configure
index 198a89cd85..e019877345 100755
--- a/r/configure
+++ b/r/configure
@@ -238,7 +238,7 @@ do_autobrew () {
   # Setup for local autobrew testing
   if [ -f "tools/apache-arrow.rb" ]; then
     # If you want to use a local apache-arrow.rb formula, do
-    # $ cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb tools/apache-arrow.rb
+    # $ cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow*.rb tools
     # before R CMD build or INSTALL (assuming a local checkout of the apache/arrow repository).
     # If you have this, you should use the local autobrew script so they match.
     cp tools/autobrew .