makefile: not use bazel_parpare in check-bazel-prepare (#43831)

This commit is contained in:
Weizhen Wang
2023-05-15 19:55:18 +08:00
committed by GitHub
parent 8ea388f6e9
commit 575d3bbcef
2 changed files with 5 additions and 1 deletions

View File

@ -427,6 +427,10 @@ generate_grafana_scripts:
bazel_ci_prepare:
bazel $(BAZEL_GLOBAL_CONFIG) run $(BAZEL_CMD_CONFIG) //:gazelle
bazel $(BAZEL_GLOBAL_CONFIG) run $(BAZEL_CMD_CONFIG) //:gazelle -- update-repos -from_file=go.mod -to_macro DEPS.bzl%go_deps -build_file_proto_mode=disable
bazel $(BAZEL_GLOBAL_CONFIG) run $(BAZEL_CMD_CONFIG) \
--run_under="cd $(CURDIR) && " \
//tools/tazel:tazel
bazel_prepare:
bazel run //:gazelle

View File

@ -21,7 +21,7 @@
set -euo pipefail
before_checksum=`find . -type f \( -name *.bazel -o -name *.bzl \) -exec md5sum {} \;| sort -k 2`
make bazel_prepare
make bazel_ci_prepare
after_checksum=`find . -type f \( -name *.bazel -o -name *.bzl \) -exec md5sum {} \;| sort -k 2`
if [ "$before_checksum" != "$after_checksum" ]
then