Skip to content

Commit 67f1633

Browse files
authored
Add debug logging for recursive go.mod searches (Azure#22950)
1 parent b86134a commit 67f1633

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eng/scripts/Language-Settings.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ function Get-AllPackageInfoFromRepo($serviceDirectory)
103103
$searchPath = Join-Path $searchPath $serviceDirectory
104104
}
105105

106-
$pkgFiles = Get-ChildItem -Path $searchPath -Include "go.mod" -Recurse
106+
[array]$pkgFiles = Get-ChildItem -Path $searchPath -Include "go.mod" -Recurse
107+
108+
if ($pkgFiles) {
109+
Write-Host "[Get-AllPackageInfoFromRepo] Mod count: $($pkgFiles.Count)"
110+
}
107111

108112
foreach ($pkgFile in $pkgFiles)
109113
{

0 commit comments

Comments
 (0)