11load ("//ruby/private:constants.bzl" , "RULES_RUBY_WORKSPACE_NAME" )
22
33def install_bundler (ctx , interpreter , install_bundler , dest , version ):
4- args = ["env" , "-i" , interpreter , install_bundler , version , dest ]
4+ args = [interpreter , install_bundler , version , dest ]
55 environment = {"RUBYOPT" : "--disable-gems" }
66
77 result = ctx .execute (args , environment = environment )
@@ -37,8 +37,6 @@ def bundle_install_impl(ctx):
3737
3838 # Install the Gems into the workspace
3939 args = [
40- "env" ,
41- "-i" , # remove all environment variables
4240 ctx .path (ruby ), # ruby
4341 "--disable-gems" , # prevent the addition of gem installation directories to the default load path
4442 "-I" , # Used to tell Ruby where to load the library scripts
@@ -58,8 +56,6 @@ def bundle_install_impl(ctx):
5856
5957 # Create the BUILD file to expose the gems to the WORKSPACE
6058 args = [
61- "env" ,
62- "-i" , # remove all environment variables
6359 ctx .path (ruby ), # ruby interpreter
6460 "--disable-gems" , # prevent the addition of gem installation directories to the default load path
6561 "-I" , # -I lib (adds this folder to $LOAD_PATH where ruby searchesf for things)
0 commit comments