Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bazel] Enable --incompatible_disallow_empty_glob #2642

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Enable automatic configs based on platform
common --enable_platform_specific_config

# Make globs that don't match anything fail
common --incompatible_disallow_empty_glob

# Needed by gRPC to build on some platforms.
build --copt -DGRPC_BAZEL_BUILD

Expand Down
1 change: 0 additions & 1 deletion sdk/src/logs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package(default_visibility = ["//visibility:public"])
cc_library(
name = "logs",
srcs = glob(["**/*.cc"]),
hdrs = glob(["**/*.h"]),
include_prefix = "src/logs",
deps = [
"//api",
Expand Down
1 change: 0 additions & 1 deletion sdk/src/metrics/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package(default_visibility = ["//visibility:public"])
cc_library(
name = "metrics",
srcs = glob(["**/*.cc"]),
hdrs = glob(["**/*.h"]),
include_prefix = "src/metrics",
deps = [
"//api",
Expand Down
1 change: 0 additions & 1 deletion sdk/src/resource/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package(default_visibility = ["//visibility:public"])
cc_library(
name = "resource",
srcs = glob(["**/*.cc"]),
hdrs = glob(["**/*.h"]),
include_prefix = "src/resource",
deps = [
"//api",
Expand Down
Loading