Class: Dependabot::GithubActions::Lockfile::UnresolvableDependency

Inherits:
DependencyFileNotResolvable
  • Object
show all
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

Instance Method Summary collapse

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

#dependencyObject (readonly)

Returns the value of attribute dependency.



38
39
40
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 38

def dependency
  @dependency
end

#detailObject (readonly)

Returns the value of attribute detail.



38
39
40
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 38

def detail
  @detail
end