Skip to content

Commit

Permalink
Update packages used by analyzer tests
Browse files Browse the repository at this point in the history
Also teach renovate how to find and update these automatically going forward.
  • Loading branch information
AArnott committed Feb 6, 2025
1 parent 4444389 commit acb16c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,13 @@
"matchJsonata": [ "sharedVariableName='CodeAnalysisVersion'" ],
"enabled": false
}
],
"customManagers": [
{
"customType": "regex",
"datasourceTemplate": "nuget",
"fileMatch": ["test/Microsoft.VisualStudio.Threading.Analyzers.Tests/Helpers/ReferencesHelper.cs"],
"matchStrings": ["PackageIdentity\\(\"(?<packageName>[^\"]+)\", \"(?<currentValue>[^\"]+)\"\\)"]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ internal static class ReferencesHelper
#error Fix TFM conditions
#endif
.WithPackages(ImmutableArray.Create(
new PackageIdentity("System.Collections.Immutable", "5.0.0"),
new PackageIdentity("System.Threading.Tasks.Extensions", "4.5.4"),
new PackageIdentity("System.Collections.Immutable", "6.0.0"),
new PackageIdentity("System.Threading.Tasks.Extensions", "4.6.0"),
new PackageIdentity("Microsoft.Bcl.AsyncInterfaces", "6.0.0")));

internal static readonly ImmutableArray<string> VSSDKPackageReferences = ImmutableArray.Create(new string[]
Expand Down

0 comments on commit acb16c2

Please sign in to comment.