From 54d90e1355180587bf7dda8f56d5d59600a7da23 Mon Sep 17 00:00:00 2001 From: Ellen Marie Dash Date: Tue, 27 Feb 2024 19:38:43 -0500 Subject: [PATCH] [rubygems/rubygems] [rebuild] If --diff is not passed and a rebuild fails, suggest passing --diff. https://github.com/rubygems/rubygems/commit/7caadd182c --- lib/rubygems/commands/rebuild_command.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rubygems/commands/rebuild_command.rb b/lib/rubygems/commands/rebuild_command.rb index 5386354f10..419e9bfdb0 100644 --- a/lib/rubygems/commands/rebuild_command.rb +++ b/lib/rubygems/commands/rebuild_command.rb @@ -154,6 +154,9 @@ Please install RubyGems v#{rg_version} and try again. if system("diffoscope", old_file, new_file).nil? alert_error "error: could not find `diffoscope` executable" end + else + say + say "Pass --diff for more details (requires diffoscope to be installed)." end terminate_interaction 1