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

only report a package as existing if the actual .nupkg can be downloaded #10939

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Nov 15, 2024

When checking if a newer package exists, we previously only checked the NuGet endpoint to see if the version is reported. This doesn't necessarily work with an authenticated Azure DevOps feed because the version could be reported as existing, but actually attempting to download the .nupkg could fail because the current authentication isn't allowed to pull in the upstream package.

The fix is to try to actually download the package before we report it as a possible upgrade path.

This issue was found by manually scanning the logs from the nuget_native_analysis experiment.

@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Nov 15, 2024
@brettfo brettfo marked this pull request as ready for review November 15, 2024 17:45
@brettfo brettfo requested a review from a team as a code owner November 15, 2024 17:45
@randhircs randhircs merged commit 82f8d59 into main Nov 15, 2024
72 checks passed
@randhircs randhircs deleted the dev/brettfo/nuget-analyze branch November 15, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants