Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit 97c1e4f

Browse files
authored
fix: explicitly set copyright year for bzl files (#1478)
Fixes: googleapis/google-cloud-cpp#3976
1 parent a8d3b61 commit 97c1e4f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

google/cloud/spanner/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ add_library(googleapis-c++::spanner_client ALIAS spanner_client)
242242
# To avoid maintaining the list of files for the library, export them to a .bzl
243243
# file.
244244
include(CreateBazelConfig)
245-
create_bazel_config(spanner_client)
245+
create_bazel_config(spanner_client YEAR "2019")
246246

247247
# Create a header-only library for the mocks. We use a CMake `INTERFACE` library
248248
# for these, a regular library would not work on macOS (where the library needs
@@ -258,7 +258,7 @@ target_link_libraries(
258258
spanner_client_mocks
259259
INTERFACE googleapis-c++::spanner_client google_cloud_cpp_testing
260260
GTest::gmock_main GTest::gmock GTest::gtest)
261-
create_bazel_config(spanner_client_mocks)
261+
create_bazel_config(spanner_client_mocks YEAR "2019")
262262
target_include_directories(
263263
spanner_client_mocks
264264
INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
@@ -308,7 +308,7 @@ function (spanner_client_define_tests)
308308
PUBLIC spanner_client_mocks googleapis-c++::spanner_client
309309
google_cloud_cpp_testing GTest::gmock_main GTest::gmock
310310
GTest::gtest)
311-
create_bazel_config(spanner_client_testing)
311+
create_bazel_config(spanner_client_testing YEAR "2019")
312312

313313
target_include_directories(
314314
spanner_client_testing
@@ -380,7 +380,7 @@ function (spanner_client_define_tests)
380380
# Export the list of unit tests to a .bzl file so we do not need to maintain
381381
# the list in two places.
382382
export_list_to_bazel("spanner_client_unit_tests.bzl"
383-
"spanner_client_unit_tests")
383+
"spanner_client_unit_tests" YEAR "2019")
384384

385385
# Create a custom target so we can say "build all the tests"
386386
add_custom_target(spanner-client-tests)
@@ -426,7 +426,7 @@ function (spanner_client_define_benchmarks)
426426
# Export the list of benchmarks to a .bzl file so we do not need to maintain
427427
# the list in two places.
428428
export_list_to_bazel("spanner_client_benchmarks.bzl"
429-
"spanner_client_benchmarks")
429+
"spanner_client_benchmarks" YEAR "2019")
430430

431431
# Create a custom target so we can say "build all the benchmarks"
432432
add_custom_target(spanner-client-benchmarks)

google/cloud/spanner/benchmarks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function (spanner_client_define_benchmarks)
4646
GTest::gmock_main
4747
GTest::gmock
4848
GTest::gtest)
49-
create_bazel_config(spanner_client_benchmarks)
49+
create_bazel_config(spanner_client_benchmarks YEAR "2019")
5050

5151
target_include_directories(
5252
spanner_client_benchmarks
@@ -64,7 +64,7 @@ function (spanner_client_define_benchmarks)
6464
# Export the list of unit tests to a .bzl file so we do not need to maintain
6565
# the list in two places.
6666
export_list_to_bazel("spanner_client_benchmark_programs.bzl"
67-
"spanner_client_benchmark_programs")
67+
"spanner_client_benchmark_programs" YEAR "2019")
6868

6969
# Generate a target for each benchmark.
7070
foreach (fname ${spanner_client_benchmark_programs})

google/cloud/spanner/integration_tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function (spanner_client_define_integration_tests)
4141
# Export the list of unit tests to a .bzl file so we do not need to maintain
4242
# the list in two places.
4343
export_list_to_bazel("spanner_client_integration_tests.bzl"
44-
"spanner_client_integration_tests")
44+
"spanner_client_integration_tests" YEAR "2019")
4545

4646
# Create a custom target so we can say "build all the tests"
4747
add_custom_target(spanner-client-integration-tests)

google/cloud/spanner/samples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ function (spanner_client_define_samples)
2727
# Export the list of unit tests to a .bzl file so we do not need to maintain
2828
# the list in two places.
2929
export_list_to_bazel("spanner_client_integration_samples.bzl"
30-
"spanner_client_integration_samples")
30+
"spanner_client_integration_samples" YEAR "2019")
3131
export_list_to_bazel("spanner_client_unit_samples.bzl"
32-
"spanner_client_unit_samples")
32+
"spanner_client_unit_samples" YEAR "2019")
3333

3434
# Generate a target for each unit test.
3535
foreach (fname ${spanner_client_integration_samples}

0 commit comments

Comments
 (0)