Class: Dependabot::GithubActions::Lockfile::UnsupportedLockfileVersion
- Inherits:
-
DependencyFileNotParseable
- Object
- DependencyFileNotParseable
- Dependabot::GithubActions::Lockfile::UnsupportedLockfileVersion
- 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
-
#found ⇒ Object
readonly
Returns the value of attribute found.
-
#supported ⇒ Object
readonly
Returns the value of attribute supported.
Instance Method Summary collapse
-
#initialize(found, supported) ⇒ UnsupportedLockfileVersion
constructor
A new instance of UnsupportedLockfileVersion.
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
#found ⇒ Object (readonly)
Returns the value of attribute found.
17 18 19 |
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 17 def found @found end |
#supported ⇒ Object (readonly)
Returns the value of attribute supported.
17 18 19 |
# File 'lib/dependabot/github_actions/lockfile/errors.rb', line 17 def supported @supported end |