Skip to content

Commit 8c0f6e9

Browse files
authored
Fix ExcludePath filter in AdditionalValidationPackagesFromPackageSetFn (Azure#39726)
1 parent a1d59c0 commit 8c0f6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/scripts/Language-Settings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Get-python-AdditionalValidationPackagesFromPackageSet {
5151
# The targetedFiles needs to filter out anything in the ExcludePaths
5252
# otherwise it'll end up processing things below that it shouldn't be.
5353
foreach ($excludePath in $diffObj.ExcludePaths) {
54-
$targetedFiles = $targetedFiles | Where-Object { -not $_.StartsWith($excludePath) }
54+
$targetedFiles = $targetedFiles | Where-Object { -not $_.StartsWith($excludePath.TrimEnd("/") + "/") }
5555
}
5656

5757
if ($targetedFiles) {

0 commit comments

Comments
 (0)