diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 14:02:03 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 14:02:03 +0200 |
commit | 5531a18c1e0456ac1c1e8f648442c5f79b65c8e5 (patch) | |
tree | 8abf3a5673e8d6d7b3be0424cdc55007e6610b16 /lib/bundler | |
parent | a05250c09d76ee3fca1eb2369ad9099918673244 (diff) | |
download | bundler-5531a18c1e0456ac1c1e8f648442c5f79b65c8e5.tar.gz |
Fix `bundle doctor` commandfix_bundle_doctor
Previously `bundle doctor` would fail on any bundle that does not
include git gems or plugins. This is because the previously used
`Bundler.home` does not exist unless the bundle includes git gems or
plugins. For example, with `bundle config set path .bundle`, it points
to which does not exist unless this kind of gems exist in the Gemfile.
The name `Bundler.home` is really unfortunate, it should probably be
have more descriptive name, and be private. But for now I just want to
make `bundle doctor` usable.
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/cli/doctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/doctor.rb b/lib/bundler/cli/doctor.rb index 1b3913a300..fcf139ed1e 100644 --- a/lib/bundler/cli/doctor.rb +++ b/lib/bundler/cli/doctor.rb @@ -100,7 +100,7 @@ module Bundler files_not_readable_or_writable = [] files_not_rw_and_owned_by_different_user = [] files_not_owned_by_current_user_but_still_rw = [] - Find.find(Bundler.home.to_s).each do |f| + Find.find(Bundler.bundle_path.to_s).each do |f| if !File.writable?(f) || !File.readable?(f) if File.stat(f).uid != Process.uid files_not_rw_and_owned_by_different_user << f |