Set incompatible_disallow_empty_glob in CI tests

In order to flip the flag, all downstream projects should be adapted. However, it is hard to fix them all if there are constant regressions. Adding it to the CI will ensure that once the project can build with incompatible_disallow_empty_glob it can keep building like that.
See: bazelbuild/bazel#15327
PiperOrigin-RevId: 507927389
pull/11778/head
Xavier Bonaventura 2 years ago committed by Copybara-Service
parent ea0aef4828
commit c8ebeb1733
  1. 4
      BUILD.bazel
  2. 3
      ci/common.bazelrc
  3. 1
      objectivec/BUILD.bazel
  4. 4
      python/BUILD.bazel
  5. 2
      src/google/protobuf/compiler/BUILD.bazel
  6. 2
      src/google/protobuf/compiler/csharp/BUILD.bazel
  7. 2
      src/google/protobuf/compiler/java/BUILD.bazel
  8. 2
      src/google/protobuf/compiler/objectivec/BUILD.bazel
  9. 2
      src/google/protobuf/compiler/php/BUILD.bazel
  10. 2
      src/google/protobuf/compiler/python/BUILD.bazel
  11. 2
      src/google/protobuf/compiler/ruby/BUILD.bazel
  12. 2
      src/google/protobuf/stubs/BUILD.bazel

@ -194,10 +194,6 @@ alias(
cc_library(
name = "protobuf",
hdrs = glob([
"src/**/*.h",
"src/**/*.inc",
]),
copts = COPTS,
include_prefix = "google/protobuf/io",
linkopts = LINK_OPTS,

@ -1,3 +1,6 @@
# Fail if a glob doesn't match anything (https://github.com/bazelbuild/bazel/issues/8195)
build --incompatible_disallow_empty_glob
build:dbg --compilation_mode=dbg
build:opt --compilation_mode=opt

@ -119,7 +119,6 @@ pkg_files(
"ProtocolBuffers_iOS.xcodeproj/**/*",
"ProtocolBuffers_OSX.xcodeproj/**/*",
"ProtocolBuffers_tvOS.xcodeproj/**/*",
"Tests/CocoaPods/**/*",
"Tests/*.pddm",
"Tests/*.txt",
"Tests/*.plist",

@ -321,9 +321,7 @@ internal_py_test(
internal_py_test(
name = "message_test",
srcs = ["google/protobuf/internal/message_test.py"],
data = glob(["testdata/golden_pickle_*"]) + [
"//src/google/protobuf:testdata",
],
data = ["//src/google/protobuf:testdata"],
)
internal_py_test(

@ -376,7 +376,7 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]) + [
], allow_empty = True) + [
"//src/google/protobuf/compiler/cpp:test_srcs",
"//src/google/protobuf/compiler/csharp:test_srcs",
"//src/google/protobuf/compiler/java:test_srcs",

@ -128,6 +128,6 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]),
], allow_empty = True),
visibility = ["//src/google/protobuf/compiler:__pkg__"],
)

@ -168,6 +168,6 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]),
], allow_empty = True),
visibility = ["//src/google/protobuf/compiler:__pkg__"],
)

@ -149,6 +149,6 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]),
], allow_empty = True),
visibility = ["//src/google/protobuf/compiler:__pkg__"],
)

@ -54,6 +54,6 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]),
], allow_empty = True),
visibility = ["//src/google/protobuf/compiler:__pkg__"],
)

@ -64,6 +64,6 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]),
], allow_empty = True),
visibility = ["//src/google/protobuf/compiler:__pkg__"],
)

@ -65,6 +65,6 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]),
], allow_empty = True),
visibility = ["//src/google/protobuf/compiler:__pkg__"],
)

@ -95,6 +95,6 @@ filegroup(
srcs = glob([
"*_test.cc",
"*unittest.cc",
]),
], allow_empty = True),
visibility = ["//pkg:__pkg__"],
)

Loading…
Cancel
Save