Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider a successfully evaluated project with no dependencies to be valid #11853

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Mar 19, 2025

When the NuGet updater determines if it was able to resolve any files, it only considered reportable dependencies and pulled file information out of that. That scenario missed a situation where the project evaluation was successful, but there was nothing that could be used as the basis of an update.

This PR fixes that.

The function DiscoveryJsonReader.run_discovery_in_directory was called twice and I'd have had to add a third, so it was lifted to a common function to reduce duplication.

@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Mar 19, 2025
@brettfo brettfo marked this pull request as ready for review March 19, 2025 20:59
@brettfo brettfo requested a review from a team as a code owner March 19, 2025 20:59
@randhircs randhircs merged commit ef4d04b into main Mar 19, 2025
79 checks passed
@randhircs randhircs deleted the dev/brettfo/nuget-empty-dependencies branch March 19, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants