class Dependabot::GoModulePathMismatch

Attributes

declared_path[R]
discovered_path[R]
go_mod[R]

Public Class Methods

new(go_mod, declared_path, discovered_path) click to toggle source
Calls superclass method Dependabot::DependabotError::new
# File lib/dependabot/errors.rb, line 208
def initialize(go_mod, declared_path, discovered_path)
  @go_mod = go_mod
  @declared_path = declared_path
  @discovered_path = discovered_path

  msg = "The module path '#{@declared_path}' found in #{@go_mod} doesn't "\
        "match the actual path '#{@discovered_path}' in the dependency's "\
        "go.mod"
  super(msg)
end