From 8b6394d4b16cb4446a39ee5bad7ccb9860c7635c Mon Sep 17 00:00:00 2001 From: aram price Date: Wed, 15 Jul 2026 11:25:30 -0700 Subject: [PATCH] Use Gem.ruby_api_version for GEM_HOME - do not add $GEM_HOME/bin to $PATH --- ci/templates/src/compile.env.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/templates/src/compile.env.erb b/ci/templates/src/compile.env.erb index b78a8fd..962a5bf 100644 --- a/ci/templates/src/compile.env.erb +++ b/ci/templates/src/compile.env.erb @@ -32,8 +32,8 @@ bosh_bundle_local() { bosh_generate_runtime_env() { mkdir -p "${BOSH_INSTALL_TARGET}/bosh" cat > "${BOSH_INSTALL_TARGET}/bosh/runtime.env" < -export PATH=${BOSH_INSTALL_TARGET}/bin:\${GEM_HOME}/bin:\${PATH} -export BUNDLE_GEMFILE=${BOSH_INSTALL_TARGET}/Gemfile +export PATH="${BOSH_INSTALL_TARGET}/bin:\${PATH}" +export GEM_HOME="${BOSH_INSTALL_TARGET}/gem_home/ruby/$(ruby -e 'puts Gem.ruby_api_version')" +export BUNDLE_GEMFILE="${BOSH_INSTALL_TARGET}/Gemfile" EOF }