From 92d76606cfb5a81dec32815785c93c78649e5e2d Mon Sep 17 00:00:00 2001 From: Tatsuya Hoshino Date: Sat, 15 Feb 2020 00:54:20 +0900 Subject: Use `bundle config` instead of a deprecated flag in an error message. When trying to install gems to the system RubyGems and it fails, bundler shows the message as follows: ``` Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo. ``` But the `--path` flag is deprecated. --- lib/bundler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bundler.rb b/lib/bundler.rb index f081d4d63f..1f7f2f14af 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -518,7 +518,8 @@ EOF Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: - bundle install --path vendor/bundle + bundle config set --local path 'vendor/bundle' + bundle install to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo. -- cgit v1.2.1