• Kubernetes Submit Queue's avatar
    Merge pull request #51229 from ixdy/always-create-vendor-BUILD · 18b84758
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Always create vendor/BUILD in hack/update-bazel.sh
    
    **What this PR does / why we need it**: makes sure there's always a `vendor/BUILD` file.
    When updating `godeps`, the [instructions](https://github.com/kubernetes/community/blob/master/contributors/devel/godep.md) say to recursively remove `vendor/`, which also removes the `vendor/BUILD` file. Unless you manually recreate this file, running `update-bazel.sh` would instead update the `all-srcs` rule in the root `BUILD.bazel` file, which is not desired. `gazelle` and `kazel` won't create `vendor/BUILD` on their own, since there are no go sources directly in `vendor/`. 
    
    With this PR, we'll make sure that the `vendor/BUILD` file always exists, creating it if necessary.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #51075
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    
    /assign @spxtr @mikedanese 
    cc @thockin
    18b84758
Name
Last commit
Last update
..
build-image Loading commit data...
cni Loading commit data...
debian-base Loading commit data...
debian-hyperkube-base Loading commit data...
debian-iptables Loading commit data...
debs Loading commit data...
lib Loading commit data...
pause Loading commit data...
release-tars Loading commit data...
root Loading commit data...
rpms Loading commit data...
visible_to Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
common.sh Loading commit data...
copy-output.sh Loading commit data...
make-build-image.sh Loading commit data...
make-clean.sh Loading commit data...
release.sh Loading commit data...
run.sh Loading commit data...
shell.sh Loading commit data...
util.sh Loading commit data...