summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/issue.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-04 17:01:19 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-19 21:09:12 +0900
commitcf9a2883fea3c28c8d869c72b1b407162a28e0b3 (patch)
tree99789b969cc63394e49ca145be3f456c339cb12f /lib/bundler/cli/issue.rb
parente107f3f4cb2e11ef6fd46db21392a22fdab4eb2a (diff)
downloadbundler-cf9a2883fea3c28c8d869c72b1b407162a28e0b3.tar.gz
Prefer `require_relative` for internal requires
Due to the way rubygems monkey-patched require interacts with default gems, and given that bundler is a default gem, and that bundler manipulates the LOAD_PATH in very intricated ways, we can reduce the risk of "leaking" to a different copy of `bundler` by using `require_relative` for internal requires.
Diffstat (limited to 'lib/bundler/cli/issue.rb')
-rw-r--r--lib/bundler/cli/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/issue.rb b/lib/bundler/cli/issue.rb
index bba1619340..054ce76315 100644
--- a/lib/bundler/cli/issue.rb
+++ b/lib/bundler/cli/issue.rb
@@ -33,7 +33,7 @@ module Bundler
end
def doctor
- require "bundler/cli/doctor"
+ require_relative "doctor"
Bundler::CLI::Doctor.new({}).run
end
end