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

prefer SafeVersions property before considering other version restrictions #11312

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Jan 15, 2025

If a safe_version is listed in a vulnerability, prefer that version to anything else. If no safe versions are explicitly listed, fall back to previous behavior.

The lambda version filter was rewritten to make it easier to read and debug. At the start we check for the SafeVersions property and the remainder of the lambda is the exact same old code, just with each condition extracted and explicitly named. This also makes debugging easier because there are several places to set a breakpoint.

The run worker was also updated to generate the correct DependencyInfo object from the job file.

Fixes #11311.

@brettfo brettfo requested a review from a team as a code owner January 15, 2025 21:40
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Jan 15, 2025
@brettfo brettfo marked this pull request as draft January 15, 2025 21:55
@brettfo brettfo force-pushed the dev/brettfo/nuget-update-analysis-limits branch from 1687348 to 1b7afad Compare January 15, 2025 22:56
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.

NuGet update analysis goes too far
1 participant