Skip to content

Commit

Permalink
resolve the path always
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored and azure-sdk committed Jul 17, 2024
1 parent e92f1de commit e59d173
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit e59d173

Please sign in to comment.