Merge pull request #63960 from ayushpateria/patch-2

Automatic merge from submit-queue (batch tested with PRs 60012, 63692, 63977, 63960, 64008). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix SkippedPaths

Bazel walks through the Kubernetes repo to add vendor targets for OpenAPI generation. `SkippedPaths` is used to skip the paths such as `_examples`. However, it doesn't work as desired, because it matches for `_` at the beginning of the path, so paths like `vendor\..\_example` are picked up by the generator. This PR fixes this.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes failing bazel tests in #55472

```release-note
NONE
```

/cc @sttts
pull/8/head
Kubernetes Submit Queue 2018-05-18 23:35:23 -07:00 committed by GitHub
commit 95116c622f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
"GoPrefix": "k8s.io/kubernetes",
"SkippedPaths": [
"^_.*",
"/_",
"^third_party/etcd.*"
],
"AddSourcesRules": true,