From 1bf1929ee5738cdf7e66541ebdb8ba9a1b812955 Mon Sep 17 00:00:00 2001 From: raj-meka <166544023+raj-meka@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:53:04 -0400 Subject: [PATCH] Strict-type-Dependabot::GoModules::MetaDateFinder. --- go_modules/lib/dependabot/go_modules/metadata_finder.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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