Skip to content

Commit 75ef89b

Browse files
authored
fix issue when a ci.yml isn't associated with an artifact, we don't have CIParameters properly populated with defaults (#49200)
1 parent fce40ef commit 75ef89b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/scripts/Language-Settings.ps1

+7
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ function Get-AllPackageInfoFromRepo($serviceDirectory)
151151
$pkgProp.CIParameters["BuildSnippets"] = $true
152152
}
153153
}
154+
# if the package isn't associated with a CI.yml, we still want to set the defaults values for these parameters
155+
# so that when we are checking the package set for which need to "Build Snippets" or "Check AOT" we won't crash due to the property being null
156+
else {
157+
$pkgProp.CIParameters["CheckAOTCompat"] = $false
158+
$pkgProp.CIParameters["AOTTestInputs"] = @()
159+
$pkgProp.CIParameters["BuildSnippets"] = $true
160+
}
154161

155162
$allPackageProps += $pkgProp
156163
}

0 commit comments

Comments
 (0)