Skip to content

Commit 1a205a1

Browse files
committed
Add build --incompatible_autoload_externally=
1 parent 284093a commit 1a205a1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ build --incompatible_disable_native_repo_rules
1818
# C++17 for protobuf compatibility
1919
build --host_cxxopt=-std=c++17
2020
build --cxxopt=-std=c++17
21+
22+
# To facilitate testing in bazelci incompatible flags
23+
# @see https://github.com/bazelbuild/bazel/pull/26906#issue-3386957462
24+
# build --incompatible_autoload_externally=@rules_python,+java_common,+JavaInfo,+JavaPluginInfo,+ProguardSpecProvider,+java_binary,+java_import,+java_library,+java_plugin,+java_test,+java_runtime,+java_toolchain,+java_package_configuration,@com_google_protobuf,@rules_shell,+@rules_android,+@rules_cc
25+
# build --incompatible_autoload_externally=@rules_shell
26+
build --incompatible_autoload_externally=

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ bazel_dep(name = "rules_license", version = "1.0.0")
2222
bazel_dep(name = "rules_jvm_external", version = "6.8")
2323
bazel_dep(name = "rules_java", version = "8.15.1")
2424
bazel_dep(name = "rules_go", version = "0.57.0", repo_name = "io_bazel_rules_go")
25+
bazel_dep(name = "rules_foreign_cc", version = "0.15.0") # specified to ensure more recent version than @grpc/@opencensus-cpp/@google_benchmark
2526
bazel_dep(name = "rules_cc", version = "0.2.0")
2627
bazel_dep(name = "protobuf", version = PROTOBUF_VERSION, repo_name = "com_google_protobuf")
2728
bazel_dep(name = "package_metadata", version = "0.0.5")

0 commit comments

Comments
 (0)