From fab6cb0bc88ed656ee2a91b249f774ead1998ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Thu, 3 Aug 2023 04:49:09 +0200 Subject: [PATCH] *: Update bazel to prune (#45775) --- Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index bd0f32cd37008..398286668d545 100644 --- a/Makefile +++ b/Makefile @@ -433,21 +433,16 @@ 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) //:gazelle -- update-repos -from_file=go.mod -to_macro DEPS.bzl%go_deps -build_file_proto_mode=disable -prune bazel $(BAZEL_GLOBAL_CONFIG) run $(BAZEL_CMD_CONFIG) //cmd/mirror:mirror -- --mirror> tmp.txt mv tmp.txt DEPS.bzl bazel $(BAZEL_GLOBAL_CONFIG) run $(BAZEL_CMD_CONFIG) \ --run_under="cd $(CURDIR) && " \ //tools/tazel:tazel -# "-prune" prunes some dependencies that are still needed. So it needs manual steps. -bazel_prune: - bazel run //:gazelle - bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro DEPS.bzl%go_deps -build_file_proto_mode=disable -prune - bazel_prepare: bazel run //:gazelle - bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro DEPS.bzl%go_deps -build_file_proto_mode=disable + bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro DEPS.bzl%go_deps -build_file_proto_mode=disable -prune bazel run \ --run_under="cd $(CURDIR) && " \ //tools/tazel:tazel @@ -458,7 +453,7 @@ bazel_prepare: bazel_ci_prepare_rbe: bazel run //:gazelle - bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro DEPS.bzl%go_deps -build_file_proto_mode=disable + bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro DEPS.bzl%go_deps -build_file_proto_mode=disable -prune bazel run --//build:with_rbe_flag=true \ --run_under="cd $(CURDIR) && " \ //tools/tazel:tazel