Skip to content

Commit 3cded6e

Browse files
paleolimbotraulcd
authored andcommitted
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 <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 2fff4d1 commit 3cded6e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dev/tasks/homebrew-formulae/autobrew/apache-arrow-static.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ApacheArrowStatic < Formula
2525
# Uncomment and update to test on a release candidate
2626
# mirror "https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-8.0.0-rc1/apache-arrow-8.0.0.tar.gz"
2727
sha256 "9948ddb6d4798b51552d0dca3252dd6e3a7d0f9702714fc6f5a1b59397ce1d28"
28-
head "https://github.com/apache/arrow.git"
28+
head "https://github.com/apache/arrow.git", branch: "main"
2929

3030
bottle do
3131
sha256 cellar: :any, arm64_big_sur: "ef89d21a110b89840cc6148add685d407e75bd633bc8f79625eb33d00e3694b4"

dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ApacheArrow < Formula
2121
homepage "https://arrow.apache.org/"
2222
url "https://www.apache.org/dyn/closer.lua?path=arrow/arrow-12.0.1.9000/apache-arrow-12.0.1.9000.tar.gz"
2323
sha256 "9948ddb6d4798b51552d0dca3252dd6e3a7d0f9702714fc6f5a1b59397ce1d28"
24-
head "https://github.com/apache/arrow.git"
24+
head "https://github.com/apache/arrow.git", branch: "main"
2525

2626
bottle do
2727
cellar :any

r/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ do_autobrew () {
238238
# Setup for local autobrew testing
239239
if [ -f "tools/apache-arrow.rb" ]; then
240240
# If you want to use a local apache-arrow.rb formula, do
241-
# $ cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb tools/apache-arrow.rb
241+
# $ cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow*.rb tools
242242
# before R CMD build or INSTALL (assuming a local checkout of the apache/arrow repository).
243243
# If you have this, you should use the local autobrew script so they match.
244244
cp tools/autobrew .

0 commit comments

Comments
 (0)