summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuya Hoshino <tatsuya7.hoshino7@gmail.com>2020-02-15 00:54:20 +0900
committerTatsuya Hoshino <tatsuya7.hoshino7@gmail.com>2020-02-15 00:54:20 +0900
commit92d76606cfb5a81dec32815785c93c78649e5e2d (patch)
tree8913e53c14b1d9609293313c7d49ad7599c5cb14
parent838ca7241a6dd6136586d125d669e828bc969677 (diff)
downloadbundler-92d76606cfb5a81dec32815785c93c78649e5e2d.tar.gz
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.
-rw-r--r--lib/bundler.rb3
1 files changed, 2 insertions, 1 deletions
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.