Skip to content

Commit

Permalink
new commit to test sorbet fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-sandhu committed Dec 11, 2024
1 parent a85dc03 commit 56ba52f
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 220 deletions.
2 changes: 1 addition & 1 deletion nuget/lib/dependabot/nuget/file_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def self.required_files_message

sig { override.returns(T::Array[DependencyFile]) }
def fetch_files
discovery_json_reader = NativeDiscoveryJsonReader.run_discovery_in_directory(
discovery_json_reader = Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.run_discovery_in_directory(
repo_contents_path: T.must(repo_contents_path),
directory: directory,
credentials: credentials
Expand Down
4 changes: 2 additions & 2 deletions nuget/lib/dependabot/nuget/file_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def ecosystem
def content_json
@content_json ||= T.let(begin
directory = source&.directory || "/"
discovery_json_reader = Dependabot::Nuget::NativeDiscoveryJsonReader.run_discovery_in_directory(
discovery_json_reader = Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.run_discovery_in_directory(
repo_contents_path: T.must(repo_contents_path),
directory: directory,
credentials: credentials
Expand All @@ -54,7 +54,7 @@ def content_json
def dependencies
@dependencies ||= T.let(begin
directory = source&.directory || "/"
discovery_json_reader = NativeDiscoveryJsonReader.run_discovery_in_directory(
discovery_json_reader = Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.run_discovery_in_directory(
repo_contents_path: T.must(repo_contents_path),
directory: directory,
credentials: credentials
Expand Down
12 changes: 6 additions & 6 deletions nuget/lib/dependabot/nuget/file_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def updated_dependency_files
try_update_projects(dependency) || try_update_json(dependency)
end
updated_files = dependency_files.filter_map do |f|
dependency_file_path = NativeDiscoveryJsonReader.dependency_file_path(
dependency_file_path = Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.dependency_file_path(
repo_contents_path: T.must(repo_contents_path),
dependency_file: f
)
Expand Down Expand Up @@ -97,7 +97,7 @@ def try_update_projects(dependency)
# run update for each project file
project_files.each do |project_file|
project_dependencies = project_dependencies(project_file)
dependency_file_path = NativeDiscoveryJsonReader.dependency_file_path(
dependency_file_path = Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.dependency_file_path(
repo_contents_path: T.must(repo_contents_path),
dependency_file: project_file
)
Expand Down Expand Up @@ -128,7 +128,7 @@ def try_update_json(dependency)

# We just need to feed the updater a project file, grab the first
project_file = T.must(project_files.first)
dependency_file_path = NativeDiscoveryJsonReader.dependency_file_path(
dependency_file_path = Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.dependency_file_path(
repo_contents_path: T.must(repo_contents_path),
dependency_file: project_file
)
Expand Down Expand Up @@ -171,10 +171,10 @@ def testonly_update_tooling_calls
sig { returns(T.nilable(NativeWorkspaceDiscovery)) }
def workspace
dependency_file_paths = dependency_files.map do |f|
NativeDiscoveryJsonReader.dependency_file_path(repo_contents_path: T.must(repo_contents_path),
dependency_file: f)
Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.dependency_file_path(repo_contents_path: T.must(repo_contents_path),
dependency_file: f)
end
NativeDiscoveryJsonReader.load_discovery_for_dependency_file_paths(dependency_file_paths).workspace_discovery
Dependabot::Nuget::NativeDiscovery::NativeDiscoveryJsonReader.load_discovery_for_dependency_file_paths(dependency_file_paths).workspace_discovery
end

sig { params(project_file: Dependabot::DependencyFile).returns(T::Array[String]) }
Expand Down
Loading

0 comments on commit 56ba52f

Please sign in to comment.