Build fixes for recent Bazel versions

We need to add the `oss-internship-2020` and `examples/hello_sapi`
directories to `.bazelignore`, so that `bazel build ...` works on a clean
working copy. This is because the Bazel builds in these directories use their
own `WORKSPACE.bazel` and this does not nest well, leading to all kinds of
hard to debug errors.

PiperOrigin-RevId: 333728800
Change-Id: Ie2e68dd39bf6f8eb21af29d8ae3ae12971b408db
This commit is contained in:
Christian Blichmann 2020-09-25 07:25:03 -07:00 committed by Copybara-Service
parent 0fa81cf706
commit 88c980218f
3 changed files with 5 additions and 2 deletions

4
.bazelignore Normal file
View File

@ -0,0 +1,4 @@
# Using CMake or own WORKSPACE
oss-internship-2020
# Uses its own WORKSPACE
sandboxed_api/examples/hello_sapi

View File

@ -40,7 +40,6 @@ sapi_library(
cc_binary( cc_binary(
name = "hello", name = "hello",
srcs = ["hello_main.cc"], srcs = ["hello_main.cc"],
includes = ["."], # To find the generated header
deps = [":hello_sapi"], deps = [":hello_sapi"],
) )
@ -50,7 +49,6 @@ cc_binary(
cc_binary( cc_binary(
name = "hello_transacted", name = "hello_transacted",
srcs = ["hello_transacted.cc"], srcs = ["hello_transacted.cc"],
includes = ["."], # To find the generated header
deps = [ deps = [
":hello_sapi", ":hello_sapi",
"@com_google_absl//absl/memory", "@com_google_absl//absl/memory",

View File

@ -46,6 +46,7 @@ cc_library(
name = "statusor", name = "statusor",
hdrs = ["statusor.h"], hdrs = ["statusor.h"],
deprecation = "Migrate to `absl::StatusOr<T>`", deprecation = "Migrate to `absl::StatusOr<T>`",
visibility = ["//visibility:public"],
deps = [ deps = [
"@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/status:statusor", "@com_google_absl//absl/status:statusor",