Skip to content

Commit 452fa97

Browse files
authored
chore: pin copyright year in generated code (#7573)
1 parent 75a030e commit 452fa97

12 files changed

Lines changed: 23 additions & 21 deletions

File tree

google/cloud/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ if (BUILD_TESTING)
253253

254254
# Export the list of unit tests so the Bazel BUILD file can pick it up.
255255
export_list_to_bazel("google_cloud_cpp_common_unit_tests.bzl"
256-
"google_cloud_cpp_common_unit_tests" YEAR 2018)
256+
"google_cloud_cpp_common_unit_tests" YEAR "2018")
257257

258258
foreach (fname ${google_cloud_cpp_common_unit_tests})
259259
google_cloud_cpp_add_executable(target "common" "${fname}")
@@ -527,11 +527,12 @@ if (GOOGLE_CLOUD_CPP_ENABLE_GRPC)
527527

528528
# Export the list of unit and integration tests so the Bazel BUILD file
529529
# can pick them up.
530-
export_list_to_bazel("google_cloud_cpp_grpc_utils_unit_tests.bzl"
531-
"google_cloud_cpp_grpc_utils_unit_tests" YEAR 2019)
530+
export_list_to_bazel(
531+
"google_cloud_cpp_grpc_utils_unit_tests.bzl"
532+
"google_cloud_cpp_grpc_utils_unit_tests" YEAR "2019")
532533
export_list_to_bazel(
533534
"google_cloud_cpp_grpc_utils_integration_tests.bzl"
534-
"google_cloud_cpp_grpc_utils_integration_tests" YEAR 2021)
535+
"google_cloud_cpp_grpc_utils_integration_tests" YEAR "2021")
535536

536537
foreach (fname ${google_cloud_cpp_grpc_utils_unit_tests})
537538
google_cloud_cpp_grpc_utils_add_test("${fname}" "")

google/cloud/bigtable/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ if (BUILD_TESTING)
315315

316316
# Export the list of unit tests so the Bazel BUILD file can pick it up.
317317
export_list_to_bazel("bigtable_client_unit_tests.bzl"
318-
"bigtable_client_unit_tests")
318+
"bigtable_client_unit_tests" YEAR "2018")
319319

320320
# Append this unit test after exporting to Bazel because it requires special
321321
# treatment

google/cloud/bigtable/admin/integration_tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set(bigtable_admin_integration_tests
2323

2424
include(CreateBazelConfig)
2525
export_list_to_bazel("bigtable_admin_integration_tests.bzl"
26-
"bigtable_admin_integration_tests")
26+
"bigtable_admin_integration_tests" YEAR "2021")
2727

2828
foreach (fname ${bigtable_admin_integration_tests})
2929
google_cloud_cpp_add_executable(target "bigtable_admin" "${fname}")

google/cloud/bigtable/benchmarks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if (BUILD_TESTING)
5454
mutation_batcher_throughput_options_test.cc
5555
random_mutation_test.cc)
5656
export_list_to_bazel("bigtable_benchmarks_unit_tests.bzl"
57-
"bigtable_benchmarks_unit_tests" YEAR 2020)
57+
"bigtable_benchmarks_unit_tests" YEAR "2020")
5858

5959
foreach (fname ${bigtable_benchmarks_unit_tests})
6060
google_cloud_cpp_add_executable(target "bigtable_benchmarks" "${fname}")
@@ -90,7 +90,7 @@ set(bigtable_benchmark_programs
9090
read_sync_vs_async_benchmark.cc
9191
scan_throughput_benchmark.cc)
9292
export_list_to_bazel("bigtable_benchmark_programs.bzl"
93-
"bigtable_benchmark_programs")
93+
"bigtable_benchmark_programs" YEAR "2018")
9494

9595
foreach (fname ${bigtable_benchmark_programs})
9696
google_cloud_cpp_add_executable(target "bigtable" "${fname}")

google/cloud/bigtable/examples/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ if (BUILD_TESTING)
5151
bigtable_examples_common_test.cc)
5252

5353
include(CreateBazelConfig)
54-
export_list_to_bazel("bigtable_examples.bzl" "bigtable_examples")
54+
export_list_to_bazel("bigtable_examples.bzl" "bigtable_examples" YEAR
55+
"2018")
5556
export_list_to_bazel("bigtable_examples_unit_tests.bzl"
56-
"bigtable_examples_unit_tests")
57+
"bigtable_examples_unit_tests" YEAR "2018")
5758
create_bazel_config(bigtable_examples_common)
5859

5960
foreach (fname ${bigtable_examples_unit_tests})

google/cloud/bigtable/tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set(bigtable_client_integration_tests
3030

3131
include(CreateBazelConfig)
3232
export_list_to_bazel("bigtable_client_integration_tests.bzl"
33-
"bigtable_client_integration_tests")
33+
"bigtable_client_integration_tests" YEAR "2018")
3434

3535
foreach (fname ${bigtable_client_integration_tests})
3636
google_cloud_cpp_add_executable(target "bigtable" "${fname}")

google/cloud/pubsub/samples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function (pubsub_client_define_samples)
5353
endforeach ()
5454

5555
export_list_to_bazel("pubsub_samples_unit_tests.bzl"
56-
"pubsub_samples_unit_tests" YEAR 2020)
56+
"pubsub_samples_unit_tests" YEAR "2020")
5757

5858
set(pubsub_client_integration_samples # cmake-format: sort
5959
samples.cc)

google/cloud/storage/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ if (BUILD_TESTING)
569569

570570
# Export the list of unit tests so the Bazel BUILD file can pick it up.
571571
export_list_to_bazel("storage_client_unit_tests.bzl"
572-
"storage_client_unit_tests")
572+
"storage_client_unit_tests" YEAR "2018")
573573

574574
add_subdirectory(tests)
575575
endif ()
@@ -613,7 +613,7 @@ if (GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC)
613613

614614
# Export the list of unit tests so the Bazel BUILD file can pick it up.
615615
export_list_to_bazel("storage_client_grpc_unit_tests.bzl"
616-
"storage_client_grpc_unit_tests")
616+
"storage_client_grpc_unit_tests" YEAR "2018")
617617
endif ()
618618
endif (GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC)
619619

google/cloud/storage/benchmarks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_GRPC)
7575
endforeach ()
7676

7777
export_list_to_bazel("storage_benchmark_programs.bzl"
78-
"storage_benchmark_programs" YEAR 2019)
78+
"storage_benchmark_programs" YEAR "2019")
7979

8080
# List the unit tests, then setup the targets and dependencies.
8181
set(storage_benchmarks_unit_tests
@@ -115,5 +115,5 @@ if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_GRPC)
115115
endforeach ()
116116
# Export the list of unit tests so the Bazel BUILD file can pick it up.
117117
export_list_to_bazel("storage_benchmarks_unit_tests.bzl"
118-
"storage_benchmarks_unit_tests" YEAR 2019)
118+
"storage_benchmarks_unit_tests" YEAR "2019")
119119
endif ()

google/cloud/storage/examples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ if (BUILD_TESTING)
5959
storage_client_mock_samples.cc storage_examples_common_test.cc)
6060

6161
include(CreateBazelConfig)
62-
export_list_to_bazel("storage_examples.bzl" "storage_examples")
62+
export_list_to_bazel("storage_examples.bzl" "storage_examples" YEAR "2018")
6363
export_list_to_bazel("storage_examples_unit_tests.bzl"
64-
"storage_examples_unit_tests")
64+
"storage_examples_unit_tests" YEAR "2018")
6565
create_bazel_config(storage_examples_common)
6666

6767
# While it is tempting create these targets using a function or a loop, we

0 commit comments

Comments
 (0)