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

NuGet Package can't find "latest" version #36637

Closed
jsquire opened this issue Nov 2, 2023 · 7 comments
Closed

NuGet Package can't find "latest" version #36637

jsquire opened this issue Nov 2, 2023 · 7 comments
Assignees
Labels
Area-NuGet untriaged Request triage from a team member

Comments

@jsquire
Copy link
Member

jsquire commented Nov 2, 2023

Issue Transfer

This issue has been transferred from the Azure SDK for .NET repository, #39716.

Please be aware that @jaz2038 is the author of the original issue and include them for any questions or replies.

Details

Library name and version

Azure.AI.OpenAI 1.0.0-beta.8

Describe the bug

About 2 days ago something changed so that when running:

dotnet list package --outdated

on a project that contains any package reference to the OpenAI nuget (I've tried all betas at this point):

<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.8" />

you get the following "not found at the sources" error:

Project `xxx` has the following updates to its packages
   [net7.0]: 
   Top-level Package      Requested      Resolved       Latest                  
   > Azure.AI.OpenAI      1.0.0-beta.8   1.0.0-beta.8   Not found at the sources

Expected behavior

Since 1.0.0-beta.8 is the latest version, I would expect nothing to come back from :

dotnet list package --outdated

for this package.

Actual behavior

Project `xxx` has the following updates to its packages
   [net7.0]: 
   Top-level Package      Requested      Resolved       Latest                  
   > Azure.AI.OpenAI      1.0.0-beta.8   1.0.0-beta.8   Not found at the sources

Reproduction Steps

create a sample project with this project reference:

and then run:

dotnet list package --outdated

Environment

all MacOS command line, tried with 7.x .net sdk's, most recently tried with latest 8.x .net sdk:

dotnet --info
.NET SDK:
Version: 8.0.100-rc.2.23502.2
Commit: 0abacfc2b6

Runtime Environment:
OS Name: Mac OS X
OS Version: 14.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.100-rc.2.23502.2/

.NET workloads installed:
There are no installed workloads to display.

Host:
Version: 8.0.0-rc.2.23479.6
Architecture: arm64
Commit: 0b25e38ad3

.NET SDKs installed:
7.0.100-rc.2.22477.23 [/usr/local/share/dotnet/sdk]
7.0.100 [/usr/local/share/dotnet/sdk]
7.0.101 [/usr/local/share/dotnet/sdk]
7.0.102 [/usr/local/share/dotnet/sdk]
7.0.200 [/usr/local/share/dotnet/sdk]
7.0.201 [/usr/local/share/dotnet/sdk]
7.0.202 [/usr/local/share/dotnet/sdk]
7.0.203 [/usr/local/share/dotnet/sdk]
7.0.302 [/usr/local/share/dotnet/sdk]
7.0.304 [/usr/local/share/dotnet/sdk]
7.0.305 [/usr/local/share/dotnet/sdk]
7.0.306 [/usr/local/share/dotnet/sdk]
7.0.400 [/usr/local/share/dotnet/sdk]
7.0.401 [/usr/local/share/dotnet/sdk]
7.0.402 [/usr/local/share/dotnet/sdk]
7.0.403 [/usr/local/share/dotnet/sdk]
8.0.100-rc.2.23502.2 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.0-rc.2.22476.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0-rc.2.23480.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.0-rc.2.22472.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0-rc.2.23479.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
x64 [/usr/local/share/dotnet/x64]
registered at [/etc/dotnet/install_location_x64]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@Forgind
Copy link
Member

Forgind commented Nov 15, 2023

@jaz2038

Are you only seeing this issue on macOS? I tried:
dotnet new console

dotnet list package --outdated

And it had output more like this:

The following sources were used:
   https://api.nuget.org/v3/index.json

The given project `36637` has no updates given the current sources.

I tried it on windows and in wsl and got the same result. (I don't have a mac, unfortunately; though I can spin up a VM, I wanted to check if I was doing something wrong first.)

Thanks!

@jaz2038
Copy link

jaz2038 commented Nov 16, 2023

@Forgind I tried on windows and see same result as you - so seems macOS specific. I tried updating to newer nuget for that package but still getting same:

[net7.0]:
Top-level Package Requested Resolved Latest

Azure.AI.OpenAI 1.0.0-beta.9 1.0.0-beta.9 Not found at the sources

other projects with real updates show:

[net7.0]:
Top-level Package Requested Resolved Latest

Microsoft.Extensions.Logging.Abstractions 7.0.1 7.0.1 8.0.0

whereas other projects with no updates get:

The given project xxxx has no updates given the current sources.

some mix of macOS and a beta package version?

@Forgind
Copy link
Member

Forgind commented Nov 22, 2023

@baronfel, you mentioned having a mac; let me know what you think here.

@jaz2038
Copy link

jaz2038 commented Jan 3, 2024

@baronfel @Forgind any updates on this one - seeing same with latest Azure.AI.OpenAI 1.0.0-beta.12

@baronfel
Copy link
Member

baronfel commented Jan 3, 2024

I haven't made time to try and repro on my mac - I'll try and get to it soon.

@baronfel baronfel self-assigned this Jan 3, 2024
@baronfel
Copy link
Member

baronfel commented Jan 9, 2024

Oh, I repro'd this easily, but the key thing here is that list package is provided by the NuGet team and merely surfaced in the .NET CLI in this repo. Sorry for the delay in actually looking at this and making that determination. I'll add the NuGet label to signal this.

@ghost
Copy link

ghost commented Jan 9, 2024

Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue!

If you believe this issue was closed out of error, please comment to let us know.

Happy Coding!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NuGet untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants