diff --git a/lib/gel/command/exec.rb b/lib/gel/command/exec.rb index 03f32ca..4148453 100644 --- a/lib/gel/command/exec.rb +++ b/lib/gel/command/exec.rb @@ -17,6 +17,7 @@ def run(command_line, from_stub: false) end ENV["RUBYLIB"] = Gel::Environment.modified_rubylib + ENV["BUNDLE_BIN_PATH"] = File.expand_path("../../../exe/gel", __dir__) if execute_inline?(expanded_command) if command_source == :path || command_source == :original diff --git a/lib/gel/gemspec_parser.rb b/lib/gel/gemspec_parser.rb index 9735ed0..7f38cf6 100644 --- a/lib/gel/gemspec_parser.rb +++ b/lib/gel/gemspec_parser.rb @@ -79,6 +79,7 @@ def self.parse(content, filename, lineno = 1, root: File.dirname(filename), isol "GEL_DEBUG" => nil, "GEL_GEMFILE" => "", "GEL_LOCKFILE" => "", + "BUNDLE_BIN_PATH" => nil, }, RbConfig.ruby, "-r", File.expand_path("compatibility", __dir__), diff --git a/lib/gel/package/installer.rb b/lib/gel/package/installer.rb index cd7d589..635cbba 100644 --- a/lib/gel/package/installer.rb +++ b/lib/gel/package/installer.rb @@ -132,6 +132,7 @@ def build_environment(rake: false) "GEL_STORE" => File.expand_path(@root_store.root), "GEL_GEMFILE" => gemfile, "GEL_LOCKFILE" => lockfile, + "BUNDLE_BIN_PATH" => File.expand_path("../../../exe/gel", __dir__), } end