From 8b9da3ea031f6735dcfcf4d54a65a524157ae19c Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Wed, 30 Sep 2020 23:39:09 -0700 Subject: [PATCH] [ggj][fix] fix: update bazel target name (#357) * update bazel target name * rename * fix --- rules_bazel/java/java_diff_test.bzl | 2 +- src/test/java/com/google/api/generator/engine/BUILD.bazel | 4 ++-- .../java/com/google/api/generator/gapic/dummy/BUILD.bazel | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rules_bazel/java/java_diff_test.bzl b/rules_bazel/java/java_diff_test.bzl index 0b3ec96168..08ce5ebf5f 100644 --- a/rules_bazel/java/java_diff_test.bzl +++ b/rules_bazel/java/java_diff_test.bzl @@ -73,7 +73,7 @@ overwritten_golden = rule( implementation = _overwritten_golden_impl, ) -def updated_golden(name, test_class_name, srcs): +def golden_update(name, test_class_name, srcs): junit_output_name = "%s_output" % name junit_output_zip( name = junit_output_name, diff --git a/src/test/java/com/google/api/generator/engine/BUILD.bazel b/src/test/java/com/google/api/generator/engine/BUILD.bazel index 90bd694347..1bcbd20f5f 100644 --- a/src/test/java/com/google/api/generator/engine/BUILD.bazel +++ b/src/test/java/com/google/api/generator/engine/BUILD.bazel @@ -1,4 +1,4 @@ -load("//:rules_bazel/java/java_diff_test.bzl", "updated_golden") +load("//:rules_bazel/java/java_diff_test.bzl", "golden_update") package(default_visibility = ["//visibility:public"]) @@ -32,7 +32,7 @@ TEST_CLASS_NAME = "com.google.api.generator.engine.JavaCodeGeneratorTest" # Run `bazel run src/test/java/com/google/api/generator/engine:JavaCodeGeneratorTest_update` # to update goldens as expected generated code. -updated_golden( +golden_update( name = "JavaCodeGeneratorTest_update", srcs = [ ":engine_files", diff --git a/src/test/java/com/google/api/generator/gapic/dummy/BUILD.bazel b/src/test/java/com/google/api/generator/gapic/dummy/BUILD.bazel index 7337d63159..3caa66fb99 100644 --- a/src/test/java/com/google/api/generator/gapic/dummy/BUILD.bazel +++ b/src/test/java/com/google/api/generator/gapic/dummy/BUILD.bazel @@ -1,4 +1,4 @@ -load("//:rules_bazel/java/java_diff_test.bzl", "updated_golden") +load("//:rules_bazel/java/java_diff_test.bzl", "golden_update") package(default_visibility = ["//visibility:public"]) @@ -28,7 +28,7 @@ TEST_CLASS_NAME = "com.google.api.generator.gapic.dummy.FileDiffInfraDummyTest" # Run `bazel run src/test/java/com/google/api/generator/gapic/dummy:FileDiffInfraDummyTest_update` # to update goldens as expected generated code. -updated_golden( +golden_update( name = "FileDiffInfraDummyTest_update", srcs = [ ":dummy_files",