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-flight-sql-postgresql.git


The following commit(s) were added to refs/heads/main by this push:
     new 114f8f7  Don't run "brew update" (#166)
114f8f7 is described below

commit 114f8f7aa4f812862ea6570a796ddc3f1ca8e8f2
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Nov 13 14:31:05 2023 +0900

    Don't run "brew update" (#166)
    
    Closes GH-165
    
    It may cause a Python related package update error.
---
 Gemfile                     | 17 ++++++++++++++++-
 ci/scripts/prepare-macos.sh |  1 -
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/Gemfile b/Gemfile
index 66ab32d..04c9a18 100644
--- a/Gemfile
+++ b/Gemfile
@@ -20,5 +20,20 @@
 source "https://rubygems.org";
 
 gem "rake"
-gem "red-arrow-flight-sql"
+# Use the version of red-arrow-flight-sql based on the available
+# arrow-glib version
+red_arrow_flight_sql_version = ">= 0"
+IO.pipe do |input, output|
+  begin
+    pid = spawn("pkg-config", "--modversion", "arrow-flight-sql-glib",
+                out: output,
+                err: File::NULL)
+    output.close
+    Process.waitpid(pid)
+    arrow_flight_sql_glib_version = input.read.strip.sub(/-SNAPSHOT\z/, "")
+    red_arrow_flight_sql_version = "<= #{arrow_flight_sql_glib_version}"
+  rescue SystemCallError
+  end
+end
+gem "red-arrow-flight-sql", red_arrow_flight_sql_version
 gem "test-unit"
diff --git a/ci/scripts/prepare-macos.sh b/ci/scripts/prepare-macos.sh
index 4e051dc..630893f 100755
--- a/ci/scripts/prepare-macos.sh
+++ b/ci/scripts/prepare-macos.sh
@@ -25,6 +25,5 @@ sed \
   -i "" \
   -e "s/postgresql@[0-9]*/postgresql@${postgresql_version}/g" \
   Brewfile
-brew update
 brew bundle --verbose
 echo "$(brew --prefix postgresql@${postgresql_version})/bin" >> 
"${GITHUB_PATH}"

Reply via email to