Class: Dependabot::GithubActions::Lockfile::UnresolvableDependency
- Inherits:
-
DependencyFileNotResolvable
- Object
- DependencyFileNotResolvable
- Dependabot::GithubActions::Lockfile::UnresolvableDependency
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/github_actions/lockfile/errors.rb
Overview
Engine could not resolve a dependency (often a transitive action the job token cannot reach). We refuse to emit a partial lockfile.
Instance Attribute Summary collapse
-
#dependency ⇒ Object
readonly
Returns the value of attribute dependency.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
Instance Method Summary collapse
-
#initialize(dependency, detail) ⇒ UnresolvableDependency
constructor
A new instance of UnresolvableDependency.
Constructor Details
#initialize(dependency, detail) ⇒ UnresolvableDependency
Returns a new instance of UnresolvableDependency.
41 42 43 44 45 |
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 41 def initialize(dependency, detail) @dependency = dependency @detail = detail super("Could not resolve #{dependency}: #{detail}") end |
Instance Attribute Details
#dependency ⇒ Object (readonly)
Returns the value of attribute dependency.
38 39 40 |
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 38 def dependency @dependency end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
38 39 40 |
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 38 def detail @detail end |