dependabot / dependabot-core

🤖 Dependabot's core logic for creating update PRs.
https://docs.github.com/en/code-security/dependabot
MIT License
4.74k stars 1.03k forks source link

remove duplicate TFMs when considering updates #10981

Closed brettfo closed 1 week ago

brettfo commented 1 week ago

When considering package updates, we call .Distinct() on the string version of the target frameworks. These can differ by case, e.g., net8.0 vs NET8.0 which will result in duplicates further on in the analysis process. These can also differ in form, but not function, e.g., net48 vs .NETFramework,Version=v4.8. Because of this the call to .Distinct() was moved to be after the conversion to a proper framework value.