From 4f38b78c7b8803dd34f11ad2ea2a5f383e36c3d8 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 23 Jan 2023 18:05:49 +0100 Subject: [PATCH] Seems plain `sh 'bundle package'` does not work --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index bb38eb79d..98ce22648 100644 --- a/Rakefile +++ b/Rakefile @@ -34,7 +34,9 @@ namespace :repackage do task :all do Dir.chdir(__dir__) do # store gems in vendor cache for docker - sh 'bundle package' + Bundler.with_original_env do + sh 'bundle package' + end # build only the jar file not the whole gem for java platform, the jar is part the concurrent-ruby-x.y.z.gem Rake::Task['lib/concurrent-ruby/concurrent/concurrent_ruby.jar'].invoke