diff --git a/go_modules/lib/dependabot/go_modules/metadata_finder.rb b/go_modules/lib/dependabot/go_modules/metadata_finder.rb index 35c992078b..e5e007a8d7 100644 --- a/go_modules/lib/dependabot/go_modules/metadata_finder.rb +++ b/go_modules/lib/dependabot/go_modules/metadata_finder.rb @@ -1,6 +1,8 @@ -# typed: true +# typed: strict # frozen_string_literal: true +require "sorbet-runtime" + require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/go_modules/path_converter" @@ -8,8 +10,11 @@ module Dependabot module GoModules class MetadataFinder < Dependabot::MetadataFinders::Base + extend T::Sig + private + sig { override.returns(T.nilable(Source)) } def look_up_source url = Dependabot::GoModules::PathConverter.git_url_for_path(dependency.name) Source.from_url(url) if url