Skip to content

Commit

Permalink
FIx build
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorkstromm committed Sep 14, 2024
1 parent e12e4f6 commit 1cbd2de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Pack
run: dotnet pack -c Release -o .artifacts --no-restore --no-build

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: nuget
path: .artifacts/*.nupkg
6 changes: 3 additions & 3 deletions src/Depends.Core/DependencyAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private static async Task ResolvePackage(PackageIdentity package,
{
await Task.WhenAll(dependencyInfo.Dependencies.Select(dependency =>
{
return DependencyAnalyzer.ResolvePackage(new PackageIdentity(dependency.Id, dependency.VersionRange.MinVersion),
return ResolvePackage(new PackageIdentity(dependency.Id, dependency.VersionRange.MinVersion),
framework, cacheContext, logger, repositories, availablePackages);
}));
}
Expand All @@ -170,7 +170,7 @@ public DependencyGraph AnalyzeSolution(string solution, string framework = null)
var builder = new DependencyGraph.Builder(solutionNode);
foreach (var project in analyzerManager.Projects.Where(p => p.Value.ProjectInSolution.ProjectType == SolutionProjectType.KnownToBeMSBuildFormat))
{
builder = DependencyAnalyzer.CreateBuilder(project.Value, project.Key, builder, framework);
builder = CreateBuilder(project.Value, project.Key, builder, framework);
}

return builder.Build();
Expand All @@ -194,7 +194,7 @@ public DependencyGraph Analyze(string projectPath, string framework = null)
}

var projectAnalyzer = analyzerManager.GetProject(projectPath);
return DependencyAnalyzer.CreateBuilder(projectAnalyzer, projectPath, null, framework).Build();
return CreateBuilder(projectAnalyzer, projectPath, null, framework).Build();
}

private static DependencyGraph.Builder CreateBuilder(IProjectAnalyzer projectAnalyzer, string projectPath, DependencyGraph.Builder builder = null, string framework = null)
Expand Down

0 comments on commit 1cbd2de

Please sign in to comment.