diff options
author | Bundlerbot <bot@bundler.io> | 2020-02-16 19:23:07 +0000 |
---|---|---|
committer | Bundlerbot <bot@bundler.io> | 2020-02-16 19:23:07 +0000 |
commit | 13eefdc8fd166862ded7425c45270dab810003b2 (patch) | |
tree | 8913e53c14b1d9609293313c7d49ad7599c5cb14 | |
parent | 838ca7241a6dd6136586d125d669e828bc969677 (diff) | |
parent | 92d76606cfb5a81dec32815785c93c78649e5e2d (diff) | |
download | bundler-13eefdc8fd166862ded7425c45270dab810003b2.tar.gz |
Merge #7633
7633: Use `bundle config` instead of a deprecated flag in an error message. r=colby-swandale a=tatsuyafw
### What was the end-user or developer problem that led to this PR?
When trying to install gems to the system RubyGems and it fails, bundler shows a message as follows:
```
$ bundle install
# snip
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, `bundle install --path vendor/bundle` shows:
```
$ bundle install --path vendor/bundle
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
# snip
```
### What is your fix for the problem, implemented in this PR?
This PR changes the message to show `bundle config set --local path` instead of the deprecated `--path` flag.
Co-authored-by: Tatsuya Hoshino <tatsuya7.hoshino7@gmail.com>
-rw-r--r-- | lib/bundler.rb | 3 |
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. |