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

abukor pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit e9ab941cd45137298b15d3bf32ed6451409679d2
Author: Zoltan Chovan <[email protected]>
AuthorDate: Mon Oct 18 14:06:19 2021 +0200

    Fix deprecation error of the --path flag
    
    When building the jekyll site the ruby bundler throws a deprecation
    warning for using the --path flag.
    
    Tested successfully with Ruby 2.4.0.
    
    The flag was deprecated in bundler 2.1 - 
https://github.com/capistrano/bundler/issues/115
    Bundler compatibility guide - https://bundler.io/compatibility.html
    
    Change-Id: I5be95e5454e73f72edaa544abb132b0574c73f17
    Reviewed-on: http://gerrit.cloudera.org:8080/17940
    Reviewed-by: Attila Bukor <[email protected]>
    Tested-by: Attila Bukor <[email protected]>
---
 site_tool | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/site_tool b/site_tool
index 0ec1c83..d251b1d 100755
--- a/site_tool
+++ b/site_tool
@@ -104,7 +104,8 @@ def setup_bundle():
   os.environ['GEM_PATH'] = GEM_PATH
   if subprocess.call([BUNDLE_PATH, "check"]) != 0:
     logging.info("Installing gems locally...")
-    subprocess.check_call([BUNDLE_PATH, "install", "--path", GEM_PATH])
+    subprocess.check_call([BUNDLE_PATH, "config", "set", "--local", "path", 
GEM_PATH])
+    subprocess.check_call([BUNDLE_PATH, "install"])
 
 
 def run_jekyll(args):

Reply via email to