File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -282,13 +282,23 @@ def self.bundled_patches_path
282
282
end
283
283
284
284
def derive_packager ( options )
285
- __skip__ =
286
- if defined? ( Bundler ) && !options [ :disable_gems ]
285
+ definition = nil
286
+ __skip__ = if defined? ( Bundler ) && !options [ :disable_gems ]
287
+ begin
288
+ # Silence Bundler UI if --print-ruby-cache-key is specified not to bother the JSON output.
289
+ level = options [ :print_ruby_cache_key ] ? :silent : Bundler . ui . level
290
+ old_level = Bundler . ui . level
291
+ Bundler . ui . level = level
287
292
if options [ :gemfile ]
288
293
Bundler ::SharedHelpers . set_env "BUNDLE_GEMFILE" , options [ :gemfile ]
294
+ definition = Bundler . definition ( true ) # unlock=true to re-evaluate "BUNDLE_GEMFILE"
295
+ else
296
+ definition = Bundler . definition
289
297
end
290
- definition = Bundler . definition ( true ) # unlock=true to re-evaluate "BUNDLE_GEMFILE"
298
+ ensure
299
+ Bundler . ui . level = old_level
291
300
end
301
+ end
292
302
RubyWasm ::Packager . new ( root , build_config ( options ) , definition )
293
303
end
294
304
You can’t perform that action at this time.
0 commit comments