Skip to content

Handle nullable NuGet package authors in Template Engine - #8112

Merged
martinrrm merged 1 commit into
dotnet:darc-main-c9542adb-c747-4a9f-bd84-f193f0c19e75from
martinrrm:dev-mruizmares-fix-nuget-authors-nullability
Aug 4, 2026
Merged

martinrrm merged 1 commit into
dotnet:darc-main-c9542adb-c747-4a9f-bd84-f193f0c19e75from
martinrrm:dev-mruizmares-fix-nuget-authors-nullability

Conversation

@martinrrm

Copy link
Copy Markdown
Contributor

Unblocks #8070.

NuGet.Client PR NuGet/NuGet.Client#7596 changed IPackageSearchMetadata.Authors from string to string?. The Template Engine metadata model intentionally keeps Authors non-nullable, so the NuGet source flow now produces CS8601 when assigning the nullable value.

Normalize missing authors to string.Empty, matching the handling already used by NuGet.Client and preserving the existing non-null invariant for Template Engine consumers.

A similar codeflow branch fix was used in #7849.

NuGet package metadata may omit authors after the nullable API update. Preserve the Template Engine model's non-null invariant by mapping a missing value to an empty string.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 91d53f3e-7606-4298-918f-9f42137eee85
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team August 4, 2026 01:14
@martinrrm
martinrrm removed the request for review from a team August 4, 2026 01:16
@martinrrm

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
3 pipeline(s) were filtered out due to trigger conditions.

@baronfel baronfel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on!

@martinrrm
martinrrm merged commit 6674a48 into dotnet:darc-main-c9542adb-c747-4a9f-bd84-f193f0c19e75 Aug 4, 2026
3 checks passed
dotnet-maestro Bot added a commit that referenced this pull request Aug 4, 2026
[main] Source code updates from nuget/nuget.client


 - Merge branch 'main' into darc-main-c9542adb-c747-4a9f-bd84-f193f0c19e75

 - Merge branch 'main' into darc-main-c9542adb-c747-4a9f-bd84-f193f0c19e75

 - Handle nullable NuGet package authors

NuGet package metadata may omit authors after the nullable API update. Preserve the Template Engine model's non-null invariant by mapping a missing value to an empty string.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 91d53f3e-7606-4298-918f-9f42137eee85

 - Handle nullable NuGet package authors in Template Engine (#8112)
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.

2 participants