diff options
author | Bundlerbot <bot@bundler.io> | 2020-01-19 12:15:32 +0000 |
---|---|---|
committer | Bundlerbot <bot@bundler.io> | 2020-01-19 12:15:32 +0000 |
commit | 94288385498a69e679b576affae393578131e2a3 (patch) | |
tree | fc1e09655f76ebc8dd8635762cdfec52f7274665 /task | |
parent | 482e752e515c701b371d706ed7a1db0ee48f26a0 (diff) | |
parent | 51007446a75b27dc4e9ceff28f0a258e101696f2 (diff) | |
download | bundler-94288385498a69e679b576affae393578131e2a3.tar.gz |
Merge #7589
7589: Add support for BUNDLER_ prefixed debug environment variables r=colby-swandale a=kou
DEBUG_RESOLVER is used in RubyGems too. So we can't enable it only for
Bundler.
### What was the end-user problem that led to this PR?
The problem was not the end-user problem. It's a developer problem.
### What was your diagnosis of the problem?
My diagnosis was RubyGems also uses `DEBUG_RESOLVER` environment variable. So we can't use `DEBUG_RESOLVER` environment variable to enable debug mode only for Bundler. We can use `DEBUG_RESOLVER_TREE` instead of `DEBUG_RESOLVER` only for `Bundler::Resolver`. But we can't do it for `Bundler::GemVersionPromoter`.
### What is your fix for the problem, implemented in this PR?
My fix adds `BUNDLER_` prefix to `DEBUG_RESOLVER` and `DEBUG_RESOLVER_TREE` like other environment variables for Bundler such as `BUNDLER_EDITOR` do.
### Why did you choose this fix out of the possible options?
I chose this fix because adding prefix is a common way. Bundlerd Molinillo and Thor also use this way such as `MOLINILLO_DEBUG` and `THOR_SHELL`.
Co-authored-by: Sutou Kouhei <kou@clear-code.com>
Diffstat (limited to 'task')
0 files changed, 0 insertions, 0 deletions