microsoft / artifacts-credprovider

The Azure Artifacts Credential Provider enables dotnet, NuGet.exe, and MSBuild to interactively acquire credentials for Azure Artifacts feeds.
MIT License
778 stars 705 forks source link

dotnet restore --interactive #427

Closed baskialdensys closed 1 year ago

baskialdensys commented 1 year ago

Unable to find package OpenAI.Api. No packages exist with this id in source(s): azure-sdk-for-net

JohnSchmeichel commented 1 year ago

Doesn't sound like a credential provider issue. What does your nuget.config look like here?

baskialdensys commented 1 year ago

When I tried 'dotnet restore --interactive', I never received any credential prompt.

Nuget.config :

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="azure-sdk-for-net" value="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json" />
  </packageSources>
</configuration>
JohnSchmeichel commented 1 year ago

Not seeing the nuget.config showing up... you probably are not seeing a credential prompt because this is not a credential issue. If you're unable to find a package nuget is informing you that from the available sources in your nuget.config that package was not found.

baskialdensys commented 1 year ago
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="azure-sdk-for-net" value="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json" />
  </packageSources>
</configuration>
JohnSchmeichel commented 1 year ago

If you check the feed you'll see that there is no package OpenAI.Api and no upstream source to pull it from, hence the error nuget is reporting. You should follow up with the feed owners to get the package added.

baskialdensys commented 1 year ago

I'm simply using the dotnet sample provided by the Microsoft team without making any modifications. I had the impression that this private package was being maintained by the Azure SDK team.

JohnSchmeichel commented 1 year ago

You'll need to follow up with that team then to update the sample as it appears to have gone stale?