Exception: Dependabot::GoModulePathMismatch

Inherits:
DependabotError show all
Extended by:
T::Sig
Defined in:
lib/dependabot/errors.rb

Constant Summary

Constants inherited from DependabotError

DependabotError::BASIC_AUTH_REGEX, DependabotError::FURY_IO_PATH_REGEX

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(go_mod, declared_path, discovered_path) ⇒ GoModulePathMismatch

Returns a new instance of GoModulePathMismatch.



725
726
727
728
729
730
731
732
733
734
# File 'lib/dependabot/errors.rb', line 725

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

Instance Attribute Details

#declared_pathObject (readonly)

Returns the value of attribute declared_path.



719
720
721
# File 'lib/dependabot/errors.rb', line 719

def declared_path
  @declared_path
end

#discovered_pathObject (readonly)

Returns the value of attribute discovered_path.



722
723
724
# File 'lib/dependabot/errors.rb', line 722

def discovered_path
  @discovered_path
end

#go_modObject (readonly)

Returns the value of attribute go_mod.



716
717
718
# File 'lib/dependabot/errors.rb', line 716

def go_mod
  @go_mod
end