Open taurit opened 2 years ago
Any update here?
Would love it if this bug could be addressed, our team has found immense value in the stability this versioning strategy brings to our engineering department.
There have been several improvements in the last few months to NuGet version handling. Are you still seeing this issue?
There have been several improvements in the last few months to NuGet version handling. Are you still seeing this issue?
Hi, I just re-tested with my initial example. Version range still doesn't seem to be processed correctly. No version bump is suggested, even though it could.
Here's my minimal repro repository to show the current behavior:
1) Dependabot created a PR to update this reference in MyProject2.csproj
:
<PackageReference Include="NodaTime" Version="2.3.0" />
2) But didn't create a PR to update this in MyProject.csproj
:
<PackageReference Include="NodaTime" Version="[2.3.0, 3.0.0)" />
Package ecosystem nuget
Package manager version bug observed in GitHub integration, so I'm not sure
Language version bug observed in GitHub integration, so I'm not sure
Manifest location and content before the Dependabot update I attach a complete set of files to reproduce the problem at the bottom.
MyProject.csproj:
dependabot.yml:
Updated dependency
<PackageReference Include="NodaTime" Version="[2.3.0, 3.0.0)" />
What you expected to see, versus what you actually saw I expected to see Dependabot create update from 2.3.0 to 2.4.18 (the last version before 3.0.0). I expected that Dependabot will not try to update to 3.0.0 or newer, because that would violate
<PackageReference>
's rules.Instead, Dependabot did not update the package at all. The logs show:
Native package manager behavior
Visual Studio offers update the dependency to the most recent 2.* version available, as expected:
Images of the diff or a link to the PR, issue, or logs
I found a PR in dependabot repo which strongly suggests that version ranges are meant to be supported by dependabot:
3087
That's why I create a bug, and not a feature request.
🕹 Bonus points: Smallest manifest that reproduces the issue
Smallest-repository-snapshot-to-reproduce-dependabot-issue-on-GitHub.zip