Skip to content

Enable nullability for NuGet.Protocol PackagesFolder types - #7396

Merged
nkolev92 merged 2 commits into
devfrom
dev-nkolev92-protocolNullabilityP10
May 19, 2026
Merged

nkolev92 merged 2 commits into
devfrom
dev-nkolev92-protocolNullabilityP10

Conversation

@nkolev92

@nkolev92 nkolev92 commented May 15, 2026 •

Copy link
Copy Markdown
Member

Bug

Progress: NuGet/Home#14851

Description

Enable nullability for the NuGet.Protocol PackagesFolder batch.

Relevant changes in this PR:

  • Annotate LocalPackageFileCache, LocalPackageInfo, LocalPackageSourceInfo, NuGetv3LocalRepository, and NuGetv3LocalRepositoryUtility.
  • Make package lookup and runtime graph flows honestly nullable where the package or runtime.json may be missing.
  • Add fail-fast argument validation for APIs that already require non-null path/id/version inputs, and keep the existing nullable packageFileCache behavior.
  • Update shipped API annotations and remove suppressions that are no longer needed after the nullability changes.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@nkolev92
nkolev92 force-pushed the dev-nkolev92-protocolNullabilityP10 branch from 4248f65 to e4423ff Compare May 18, 2026 15:59
@nkolev92
nkolev92 marked this pull request as ready for review May 19, 2026 02:17
@nkolev92
nkolev92 requested a review from a team as a code owner May 19, 2026 02:17
@nkolev92
nkolev92 requested review from jeffkl and martinrrm May 19, 2026 02:17
@nkolev92
nkolev92 merged commit 1bd3bcc into dev May 19, 2026
17 of 18 checks passed
@nkolev92
nkolev92 deleted the dev-nkolev92-protocolNullabilityP10 branch May 19, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants