We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee4c945 commit 7c0cf63Copy full SHA for 7c0cf63
eng/scripts/Invoke-DependencyCheck.ps1
@@ -24,7 +24,11 @@ if ($LASTEXITCODE) { exit $LASTEXITCODE }
24
function IsPackageDeprecated($sdk)
25
{
26
$RETRACT_SECTION_REGEX = "retract\s*((?<retract>(.|\s)*))"
27
+ $DEPRECATE_SECTION_REGEX = "\/\/\s*Deprecated:"
28
$modContent = Get-Content (Join-Path $sdk.DirectoryPath 'go.mod') -Raw
29
+ if ($modContent -match $DEPRECATE_SECTION_REGEX) {
30
+ return $true
31
+ }
32
if ($modContent -match $RETRACT_SECTION_REGEX) {
33
return $($matches["retract"]).Indexof($sdk.Version) -ne -1
34
}
0 commit comments