Class: Dependabot::GithubActions::Lockfile::UnsupportedLockfileVersion

Inherits:
DependencyFileNotParseable
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/github_actions/lockfile/errors.rb

Overview

Lockfile schema version this ecosystem does not understand. Hard error so we never half-write an incompatible lockfile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(found, supported) ⇒ UnsupportedLockfileVersion

Returns a new instance of UnsupportedLockfileVersion.



20
21
22
23
24
25
26
27
28
29
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 20

def initialize(found, supported)
  @found = found
  @supported = supported
  super(
    LOCKFILE_PATH,
    "Unsupported actions.lock version #{found.inspect}; " \
    "this version of Dependabot supports #{supported.inspect}. " \
    "Upgrade Dependabot or regenerate the lockfile with a compatible gh-actions-lock version."
  )
end

Instance Attribute Details

#foundObject (readonly)

Returns the value of attribute found.



17
18
19
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 17

def found
  @found
end

#supportedObject (readonly)

Returns the value of attribute supported.



17
18
19
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 17

def supported
  @supported
end