Skip to content

Commit 25e007e

Browse files
committed
Silence uninstall step for rubygems
Because we now defensively always try to uninstall old versions, we don't want to confuse people by showing the 'Gem not installed' message if there are no older versions.
1 parent a8a20a3 commit 25e007e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configs/components/_base-rubygem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
pkg.install do
4141
steps = []
4242
# Attempting to uninstall a default gem this way will fail, so ignore failures
43-
steps << "#{gem_uninstall} --force #{name} || true"
43+
steps << "#{gem_uninstall} --force --silent #{name} || true"
4444
steps << "#{settings[:gem_install]} #{name}-#{version}.gem #{gem_install_options || ''}"
4545
# If we are installing a newer version of a default gem, we need to remove the existing
4646
# specification file so that we don't get warnings. The corresponding gem directory is

0 commit comments

Comments
 (0)