What was the end-user or developer problem that led to this PR?
The problem was that if BUNDLE_APP_CONFIG is set to an absolute path, and there's no Gemfile up in the directory hierarchy, bundler would end up using the default config location instead of the customized one.
What is your fix for the problem, implemented in this PR?
My fix is to completely avoid bundler's root resolution for resolving the config path in this case, since BUNDLE_APP_CONFIG includes all the information we need to know.
What was the end-user or developer problem that led to this PR?
The problem was that if
BUNDLE_APP_CONFIG
is set to an absolute path, and there's no Gemfile up in the directory hierarchy, bundler would end up using the default config location instead of the customized one.What is your fix for the problem, implemented in this PR?
My fix is to completely avoid bundler's root resolution for resolving the config path in this case, since
BUNDLE_APP_CONFIG
includes all the information we need to know.Fixes #7610.