Skip to content

Commit

Permalink
remove clearly unnecessary lingering BUILD file references
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Oct 4, 2022
1 parent 2734421 commit db9c760
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion .generated_files
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

file-prefix zz_generated.

file-name BUILD
file-name types.generated.go
file-name generated.pb.go
file-name generated.proto
Expand Down
6 changes: 0 additions & 6 deletions hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ readonly KUBE_SUPPORTED_TEST_PLATFORMS=(
)

# The set of server targets that we are only building for Linux
# If you update this list, please also update build/BUILD.
kube::golang::server_targets() {
local targets=(
cmd/kube-proxy
Expand Down Expand Up @@ -123,7 +122,6 @@ IFS=" " read -ra KUBE_CONFORMANCE_IMAGE_TARGETS <<< "$(kube::golang::conformance
readonly KUBE_CONFORMANCE_IMAGE_TARGETS

# The set of server targets that we are only building for Kubernetes nodes
# If you update this list, please also update build/BUILD.
kube::golang::node_targets() {
local targets=(
cmd/kube-proxy
Expand Down Expand Up @@ -256,7 +254,6 @@ kube::golang::setup_platforms() {
kube::golang::setup_platforms

# The set of client targets that we are building for all platforms
# If you update this list, please also update build/BUILD.
readonly KUBE_CLIENT_TARGETS=(
cmd/kubectl
cmd/kubectl-convert
Expand All @@ -265,7 +262,6 @@ readonly KUBE_CLIENT_BINARIES=("${KUBE_CLIENT_TARGETS[@]##*/}")
readonly KUBE_CLIENT_BINARIES_WIN=("${KUBE_CLIENT_BINARIES[@]/%/.exe}")

# The set of test targets that we are building for all platforms
# If you update this list, please also update build/BUILD.
kube::golang::test_targets() {
local targets=(
cmd/gendocs
Expand All @@ -283,7 +279,6 @@ IFS=" " read -ra KUBE_TEST_TARGETS <<< "$(kube::golang::test_targets)"
readonly KUBE_TEST_TARGETS
readonly KUBE_TEST_BINARIES=("${KUBE_TEST_TARGETS[@]##*/}")
readonly KUBE_TEST_BINARIES_WIN=("${KUBE_TEST_BINARIES[@]/%/.exe}")
# If you update this list, please also update build/BUILD.
readonly KUBE_TEST_PORTABLE=(
test/e2e/testing-manifests
test/kubemark
Expand All @@ -296,7 +291,6 @@ readonly KUBE_TEST_PORTABLE=(
# Test targets which run on the Kubernetes clusters directly, so we only
# need to target server platforms.
# These binaries will be distributed in the kubernetes-test tarball.
# If you update this list, please also update build/BUILD.
kube::golang::server_test_targets() {
local targets=(
cmd/kubemark
Expand Down
2 changes: 0 additions & 2 deletions hack/verify-flags-underscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def get_all_files(rootdir):
dirs.remove('third_party')
if '.git' in dirs:
dirs.remove('.git')
if 'BUILD' in files:
files.remove('BUILD')

for name in files:
pathname = os.path.join(root, name)
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-readonly-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ find_files() {
conflicts=()
while IFS=$'\n' read -r dir; do
dir=${dir#./}
if kube::util::has_changes "${branch}" "^${dir}/[^/]*\$" '/\.readonly$|/BUILD$|/zz_generated|/\.generated\.|\.proto$|\.pb\.go$' >/dev/null; then
if kube::util::has_changes "${branch}" "^${dir}/[^/]*\$" '/\.readonly$|/zz_generated|/\.generated\.|\.proto$|\.pb\.go$' >/dev/null; then
conflicts+=("${dir}")
fi
done < <(find_files | sed 's|/.readonly||')
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pushd "${KUBE_ROOT}" > /dev/null 2>&1
ret=1
fi

if ! _out="$(diff -Naupr -x "BUILD" -x "AUTHORS*" -x "CONTRIBUTORS*" vendor "${_kubetmp}/vendor")"; then
if ! _out="$(diff -Naupr -x "AUTHORS*" -x "CONTRIBUTORS*" vendor "${_kubetmp}/vendor")"; then
echo "Your vendored results are different:" >&2
echo "${_out}" >&2
echo "Vendor Verify failed." >&2
Expand Down

0 comments on commit db9c760

Please sign in to comment.