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

Fix reporting of downgrades for dependencies with VersionRange.All #6045

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Sep 23, 2024

Bug

Fixes: NuGet/Home#13799

Description

The resolver considers a downgrade for a package dependency when no version is specified and instead it defaults to VersionRange.All. This results in a downgrade warning and instead the code should verify if the version is satisfied by the chosen version.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@nkolev92 nkolev92 marked this pull request as ready for review September 23, 2024 18:27
@nkolev92 nkolev92 requested a review from a team as a code owner September 23, 2024 18:27
@nkolev92 nkolev92 enabled auto-merge (squash) September 23, 2024 18:56
@nkolev92 nkolev92 force-pushed the dev-nkolev92-downgradesForVersionRangeAll branch from f89f375 to 3e13c6d Compare September 23, 2024 18:57
@nkolev92 nkolev92 merged commit db124df into dev Sep 23, 2024
28 checks passed
@nkolev92 nkolev92 deleted the dev-nkolev92-downgradesForVersionRangeAll branch September 23, 2024 22:19
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.

New restore algorithm reports downgrades for dependencies with missing package versions.
2 participants