openai / openai-dotnet

The official .NET library for the OpenAI API
https://www.nuget.org/packages/OpenAI
MIT License
1.2k stars 114 forks source link

NU1900: Warning As Error: Error occurred while getting package vulnerability data #226

Open EvoTechMike opened 1 week ago

EvoTechMike commented 1 week ago

Service

OpenAI

Describe the bug

When trying to do dotnet restore inside docker package targeting arm64 the openai project generates this warning:

NU1900: Warning As Error: Error occurred while getting package vulnerability data: Object reference not set to an instance of an object.

As warnings as errors are set in csproj it breaks my build pipeline.

Could you add NU1900 to the nowarn list in .csproj please?

Steps to reproduce

create docker file that attempts to do a dotnet restore on the csproj file and try to build for arm64 platform.

Code snippets

No response

OS

Ubuntu 22.04 Arm64

.NET version

8

Library version

main branch

joseharriaga commented 2 days ago

Thank you for reaching out, @EvoTechMike ! What does your nuget.config file look like? Are you restoring the NuGet package from nuget.org?