GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — baize/hack/verify-bazel.sh at master · dashjay/baize Expand file tree/ Copy pathverify-bazel.shMore file actions executable file ·55 lines (46 loc) · 1.58 KB / Copy pathverify-bazel.shFile metadata and controlsexecutable file ·55 lines (46 loc) · 1.58 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 #!/usr/bin/env bash # This script is a modified version of Kubernetes k8s.io/repo-infra # https://github.com/kubernetes/repo-infra/blob/v0.0.1-alpha.1/hack/update-bazel.sh # we remove go.mod check and add exclusion of '*/third_party/*' while using $buildifier set -o errexit set -o nounset set -o pipefail fail() { echo "ERROR: $1. Fix with:" >&2 echo " bazel run //hack:update-bazel" >&2 exit 1 } if [[ -n "${TEST_WORKSPACE:-}" ]]; then # Running inside bazel echo "Validating bazel rules..." >&2 elif ! command -v bazel &> /dev/null; then echo "Install bazel by using ./hack/install-bazel.sh" >&2 exit 1 elif ! bazel query @//:all-srcs &>/dev/null; then fail "bazel rules need bootstrapping" else ( set -o xtrace bazel test --test_output=streamed //hack:verify-bazel ) exit 0 fi buildifier=$1 gazelle=$2 kazel=$3 gazelle_diff=$("$gazelle" fix --mode=diff --external=external -go_naming_convention=go_default_library || echo "ERROR: gazelle diffs") kazel_diff=$("$kazel" --dry-run --print-diff --cfg-path=./.kazelcfg.json || echo "ERROR: kazel diffs") # TODO(fejta): --mode=diff --lint=warn buildifier_diff=$(find . \ -name BUILD -o -name BUILD.bazel -o -name '*.bzl' -type f \ -exec "$buildifier" --mode=diff '{}' + 2>&1 || echo "ERROR: found buildifier diffs") if [[ -n "${gazelle_diff}${kazel_diff}${buildifier_diff}" ]]; then echo "Current rules (-) do not match expected (+):" >&2 echo "gazelle diff:" echo "${gazelle_diff}" echo "kazel diff:" echo "${kazel_diff}" echo "buildifier diff:" echo "$buildifier_diff" echo fail "bazel rules out of date" fi |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |