diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index 02edf4cd6d9..bd445f7c6b4 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -185,14 +185,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) { $targetedFiles += $diff.DeletedFiles } - # The exclude paths and the targeted files paths aren't full OS paths, they're - # GitHub paths meaning they're relative to the repo root and slashes are forward - # slashes "/". The ExcludePaths need to have a trailing slash added in order - # correctly test for string matches without overmatching. For example, if a pr - # had files sdk/foo/file1 and sdk/foobar/file2 with the exclude of anything in - # sdk/foo, it should only exclude things under sdk/foo. The TrimEnd is just in - # case one of the paths ends with a slash, it doesn't add a second one. - $excludePaths = $diff.ExcludePaths | ForEach-Object { $_ } + $excludePaths = $diff.ExcludePaths $additionalValidationPackages = @() $lookup = @{}