enj: Automated cherry pick of #94165: Use separate pathSpec for local and remote to properly handle

JobBuild
0a8271f1
11-08 21:09
106237
11-08 20:34
46ec6e1f
11-08 20:34
pull-kubernetes-bazel-build 1458079374954729472 1457817515072688128 1457808110151274496
pull-kubernetes-bazel-test 1458090028298145792 1458079374992478208 1457817515114631168 1457808110180634624
pull-kubernetes-dependencies 1458079375017644032 1457817515307569152 1457808110209994752
pull-kubernetes-e2e-gce-100-performance 1458079374929563648 1457817531736657920 1457808110126108672
pull-kubernetes-e2e-gce-ubuntu-containerd 1458079374858260480 1457817514976219136 1457808110050611200
pull-kubernetes-e2e-kind 1458079375088947200 1457817516561666048 1457808110272909312
pull-kubernetes-integration 1458079375063781376 1457817515718610944 1457808110239354880
pull-kubernetes-node-e2e 1458079374887620608 1457817515005579264 1457808110071582720
pull-kubernetes-typecheck 1458079375118307328 1457817517396332544 1457808110306463744
pull-kubernetes-verify 1458079375147667456 1457817518235193344 1457808110516178944