mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge RubyGems-3.3.16 and Bundler-2.3.16
This commit is contained in:
parent
b9f6a09bd2
commit
a01f5ad1ec
66 changed files with 808 additions and 562 deletions
|
@ -48,7 +48,7 @@ class Gem::Ext::Builder
|
|||
end
|
||||
end
|
||||
|
||||
def self.run(command, results, command_name = nil, dir = Dir.pwd)
|
||||
def self.run(command, results, command_name = nil, dir = Dir.pwd, env = {})
|
||||
verbose = Gem.configuration.really_verbose
|
||||
|
||||
begin
|
||||
|
@ -63,9 +63,9 @@ class Gem::Ext::Builder
|
|||
|
||||
require "open3"
|
||||
# Set $SOURCE_DATE_EPOCH for the subprocess.
|
||||
env = {'SOURCE_DATE_EPOCH' => Gem.source_date_epoch_string}
|
||||
build_env = { 'SOURCE_DATE_EPOCH' => Gem.source_date_epoch_string }.merge(env)
|
||||
output, status = begin
|
||||
Open3.capture2e(env, *command, :chdir => dir)
|
||||
Open3.capture2e(build_env, *command, :chdir => dir)
|
||||
rescue => error
|
||||
raise Gem::InstallError, "#{command_name || class_name} failed#{error.message}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue