Skip to content

Commit

Permalink
Strict-type-Dependabot::GoModules::MetaDateFinder. (#9919)
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-meka authored Jun 7, 2024
1 parent b951923 commit 5b92376
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go_modules/lib/dependabot/go_modules/metadata_finder.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# 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"

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
Expand Down

0 comments on commit 5b92376

Please sign in to comment.