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/01/12 05:58:32 UTC

[arrow-adbc] branch main updated: fix(dev/release): Update install location for RubyGems and Bundler (#345)

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-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new fbd1f44  fix(dev/release): Update install location for RubyGems and Bundler (#345)
fbd1f44 is described below

commit fbd1f44d9b2c76dadaa29e6bb40d3629bcae3ecb
Author: Benson Muite <bk...@users.noreply.github.com>
AuthorDate: Thu Jan 12 08:58:27 2023 +0300

    fix(dev/release): Update install location for RubyGems and Bundler (#345)
    
    Fixes #343.
    
    Use local install directory when using Bundler
    
    Co-authored-by: Sutou Kouhei <ko...@cozmixng.org>
---
 ci/scripts/glib_test.sh                 | 6 +++++-
 dev/release/verify-release-candidate.sh | 4 +++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ci/scripts/glib_test.sh b/ci/scripts/glib_test.sh
index c009fe3..5d4f8d5 100755
--- a/ci/scripts/glib_test.sh
+++ b/ci/scripts/glib_test.sh
@@ -44,6 +44,7 @@ test_subproject() {
                --with-cppflags=\"-D_LIBCPP_DISABLE_AVAILABILITY\"
     fi
 
+    bundle config set --local path 'vendor/bundle'
     bundle install
     bundle exec \
            env DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" \
@@ -60,6 +61,7 @@ test_subproject() {
                --with-cppflags=\"-D_LIBCPP_DISABLE_AVAILABILITY\"
     fi
 
+    bundle config set --local path 'vendor/bundle'
     bundle install
     bundle exec \
            env DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" \
@@ -72,7 +74,9 @@ test_subproject() {
         gem_flags='-- --with-cflags="-D_LIBCPP_DISABLE_AVAILABILITY" --with-cppflags="-D_LIBCPP_DISABLE_AVAILABILITY"'
     fi
 
-    gem install --install-dir "${build_dir}/gems" pkg/*.gem -- ${gem_flags}
+    export GEM_HOME="${build_dir}/gems"
+    export PATH="${GEM_HOME}/bin:${PATH}"
+    gem install pkg/*.gem -- ${gem_flags}
     popd
 }
 
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index ba0516f..0d10a8d 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -484,7 +484,9 @@ test_glib() {
 
   # Install bundler if doesn't exist
   if ! bundle --version; then
-    gem install --user-install --no-document bundler
+    export GEM_HOME="${ARROW_TMPDIR}/glib-build/gems"
+    export PATH="${GEM_HOME}/bin:${PATH}"
+    gem install --no-document bundler
   fi
 
   if [ "${USE_CONDA}" -gt 0 ]; then