diff --git a/rakelib/lib/config.rb b/rakelib/lib/config.rb index 0716aaaf..3d778ea2 100644 --- a/rakelib/lib/config.rb +++ b/rakelib/lib/config.rb @@ -313,7 +313,7 @@ def make_ruby_cmd(*cmd, verbose: true) private :make_ruby_cmd def execute(*cmd) - do_run(*cmd.flatten) + sh(exec_env.merge({'RUBYLIB'=>rb_lib_path}), cmd.flatten.join(' '), fail_on_error: true) end def run(*cmd, capture: nil, verbose: true)