Skip to content

Commit

Permalink
force save-package-properties commit into proper format
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Aug 30, 2024
1 parent 7d51ba4 commit 0e55d61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eng/common/scripts/Package-Properties.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
$pkgDirectory = Resolve-Path "$($pkg.DirectoryPath)"
$lookupKey = ($pkg.DirectoryPath).Replace($RepoRoot, "").SubString(1)
$lookup[$lookupKey] = $pkg
Write-Host "Saving lookup key $lookupKey for $pkg"

foreach ($file in $targetedFiles)
{
Expand All @@ -130,6 +131,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
$packagesWithChanges += $pkg

if ($pkg.AdditionalValidationPackages) {
Write-Host ($pkg.AdditionalValidationPackages -join ",")
$additionalValidationPackages += $pkg.AdditionalValidationPackages
}
}
Expand All @@ -138,6 +140,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) {

foreach ($addition in $additionalValidationPackages) {
$key = $addition.Replace($RepoRoot, "").SubString(1)
Write-Host "Processing $addition to see if we have metadata about it: $key"

if ($lookup[$key]) {
$packagesWithChanges += $lookup[$key]
Expand Down

0 comments on commit 0e55d61

Please sign in to comment.