Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/MODULE.tools
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ use_repo(buildozer_binary, "buildozer_binary")

# Dependencies used to auto-load removed symbols and rules from Bazel (due to Starlarkification)
# See also: --incompatible_autoload_externally, AutoloadSymbols
bazel_dep(name = "protobuf", version = "29.0-rc2")
bazel_dep(name = "rules_java", version = "8.2.0")
bazel_dep(name = "rules_cc", version = "0.0.13")
bazel_dep(name = "rules_python", version = "0.36.0")
Expand Down
4 changes: 2 additions & 2 deletions src/test/shell/integration/discard_graph_edges_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ function test_packages_cleared() {
# is still low (external packages don't contribute there). We can lower this
# number again once we remove WORKSPACE logic and move repo rules to not use
# Package anymore.
[[ "$package_count" -le 53 ]] \
[[ "$package_count" -le 56 ]] \
|| fail "package count $package_count too high"
globs_count="$(extract_histogram_count "$histo_file" "GlobsValue$")"
[[ "$globs_count" -le 1 ]] \
|| fail "globs count $globs_count too high"
module_count="$(extract_histogram_count "$histo_file" 'eval.Module$')"
[[ "$module_count" -le 270 ]] \
[[ "$module_count" -le 295 ]] \
|| fail "Module count $module_count too high"
ct_count="$(extract_histogram_count "$histo_file" \
'RuleConfiguredTarget$')"
Expand Down
6 changes: 0 additions & 6 deletions src/test/shell/testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -592,12 +592,6 @@ function add_rules_license() {

function add_protobuf() {
add_bazel_dep "protobuf" "$1"
cat >> "$1" <<EOF
single_version_override(
module_name = "protobuf",
version = "29.0-rc2",
)
EOF
}

function add_rules_testing() {
Expand Down
1,161 changes: 189 additions & 972 deletions src/test/tools/bzlmod/MODULE.bazel.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ filegroup(
exclude = ["fastutil.proguard"],
) + [
"//tools/allowlists:srcs",
"//tools/android:embedded_tools",
"//tools/bash:embedded_tools",
"//tools/build_defs:embedded_tools",
"//tools/build_rules:embedded_tools_srcs",
Expand Down Expand Up @@ -76,6 +77,7 @@ filegroup(
name = "bzl_srcs",
srcs = [
"//tools:build_defs.bzl",
"//tools/android:bzl_srcs",
"//tools/build_defs:bzl_srcs",
"//tools/build_rules:bzl_srcs",
"//tools/cpp:bzl_srcs",
Expand Down
8 changes: 8 additions & 0 deletions tools/android/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ filegroup(
],
)

filegroup(
name = "embedded_tools",
srcs = [
"android_extensions.bzl",
"BUILD.tools",
],
)

platform(
name = "arm64-v8a",
constraint_values = [
Expand Down
5 changes: 5 additions & 0 deletions tools/android/BUILD.tools
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
filegroup(
name = "bzl_srcs",
srcs = glob(["*.bzl"]),
visibility = ["//tools:__pkg__"],
)