Class: Bundler::Overrule::UnsupportedBundlerError
- Defined in:
- lib/bundler/overrule/errors.rb
Overview
Raised when the running Bundler does not expose the internals we patch. We would rather abort loudly than silently mis-resolve (G5, B9).
Instance Method Summary collapse
-
#initialize(detail) ⇒ UnsupportedBundlerError
constructor
A new instance of UnsupportedBundlerError.
Methods inherited from Error
Constructor Details
#initialize(detail) ⇒ UnsupportedBundlerError
Returns a new instance of UnsupportedBundlerError.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/bundler/overrule/errors.rb', line 31 def initialize(detail) super(<<~MSG) bundler-overrule does not support Bundler #{::Bundler::VERSION}. #{detail} Supported: Bundler #{Overrule::SUPPORTED_BUNDLER_DESCRIPTION}. This is a deliberate hard stop. bundler-overrule rewrites dependency edges by patching Bundler internals; if those internals have moved, continuing could silently resolve the wrong versions. Pin your Bundler version, or upgrade bundler-overrule if a newer release supports this one. MSG end |