Class: Dependabot::Python::PipCompileErrorHandler
- Inherits:
-
Object
- Object
- Dependabot::Python::PipCompileErrorHandler
- Defined in:
- lib/dependabot/python/update_checker/pip_compile_version_resolver.rb
Constant Summary collapse
- SUBPROCESS_ERROR =
/subprocess-exited-with-error/- INSTALLATION_ERROR =
/InstallationError/- INSTALLATION_SUBPROCESS_ERROR =
/InstallationSubprocessError/- HASH_MISMATCH =
/HashMismatch/
Instance Method Summary collapse
Instance Method Details
#handle_pipcompile_error(error) ⇒ Object
511 512 513 514 515 516 |
# File 'lib/dependabot/python/update_checker/pip_compile_version_resolver.rb', line 511 def handle_pipcompile_error(error) return unless error.match?(SUBPROCESS_ERROR) || error.match?(INSTALLATION_ERROR) || error.match?(INSTALLATION_SUBPROCESS_ERROR) || error.match?(HASH_MISMATCH) raise DependencyFileNotResolvable, "Error resolving dependency" end |