summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-01-30 17:13:55 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-01-30 17:13:55 -0600
commit880f3de64aec52d9ad97f09ae4655e0b296b1a6c (patch)
treee0bca7f8b181ee7d260ef871c8ad035637fc9b4e /lib/bundler
parent00e965d22a2146a072481fc72dfc1cf28c853876 (diff)
downloadbundler-880f3de64aec52d9ad97f09ae4655e0b296b1a6c.tar.gz
[Resolver] Determine debug mode onceseg-debug-once
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/resolver.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb
index 82dcd7fbfd..a10c03b0f6 100644
--- a/lib/bundler/resolver.rb
+++ b/lib/bundler/resolver.rb
@@ -224,7 +224,8 @@ module Bundler
end
def debug?
- ENV["DEBUG_RESOLVER"] || ENV["DEBUG_RESOLVER_TREE"]
+ return @debug_mode if defined?(@debug_mode)
+ @debug_mode = ENV["DEBUG_RESOLVER"] || ENV["DEBUG_RESOLVER_TREE"]
end
def before_resolution