Module: Dependabot::GoModules::NativeHelpers

Extended by:
T::Sig
Defined in:
lib/dependabot/go_modules/native_helpers.rb

Class Method Summary collapse

Class Method Details

.clean_path(path) ⇒ Object



23
24
25
# File 'lib/dependabot/go_modules/native_helpers.rb', line 23

def self.clean_path(path)
  Pathname.new(path).cleanpath.to_path
end

.helper_pathObject



12
13
14
# File 'lib/dependabot/go_modules/native_helpers.rb', line 12

def self.helper_path
  clean_path(File.join(native_helpers_root, "go_modules/bin/helper"))
end

.native_helpers_rootObject



17
18
19
20
# File 'lib/dependabot/go_modules/native_helpers.rb', line 17

def self.native_helpers_root
  default_path = File.join(__dir__, "../../../helpers/install-dir")
  ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", default_path)
end