Skip to content
Prev Previous commit
resolve the path always
  • Loading branch information
scbedd authored and azure-sdk committed Jul 17, 2024
commit de2b8de6166e6d5039fb81cc8978ffa0a74be391
4 changes: 3 additions & 1 deletion eng/common/scripts/Package-Properties.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ function Get-PrPkgProperties([string]$InputDiffJson) {

foreach($pkg in $allPackageProperties)
{
$pkgDirectory = Resolve-Path "$($pkg.DirectoryPath)"

foreach($file in $targetedFiles)
{
$filePath = Resolve-Path (Join-Path $RepoRoot $file)
$shouldInclude = $filePath -like "$($pkg.DirectoryPath)*"
$shouldInclude = $filePath -like "$pkgDirectory*"
if ($shouldInclude) {
$packagesWithChanges += $pkg
}
Expand Down