Skip to content

Commit b1083a8

Browse files
cblichmanncopybara-github
authored andcommitted
Bazel: Modernize build, fix minor issues
- Remove deprecated `WORKSPACE.bzlmod` - Adjust BUILD dependencies for Bazel, particularly for protobuf and python rules PiperOrigin-RevId: 903223054 Change-Id: I5f7a85d7d93f6638a15e6cecd38b31a9936bb14a
1 parent d012e3c commit b1083a8

10 files changed

Lines changed: 10 additions & 18 deletions

File tree

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
module(
1616
name = "sandboxed_api",
17-
version = "20260109.0",
17+
version = "20260421.0",
1818
bazel_compatibility = [">=8.5.0"],
1919
)
2020

WORKSPACE.bzlmod

Lines changed: 0 additions & 16 deletions
This file was deleted.

sandboxed_api/bazel/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ bzl_library(
4646
srcs = ["proto.bzl"],
4747
visibility = ["//visibility:private"],
4848
deps = [
49-
"@rules_proto//proto:defs",
49+
"@com_google_protobuf//bazel:cc_proto_library_bzl",
50+
"@com_google_protobuf//bazel:proto_library_bzl",
5051
],
5152
)
5253

sandboxed_api/examples/sum/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
1616
load("@rules_cc//cc:cc_library.bzl", "cc_library")
17+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
1718
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
1819
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
1920
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")

sandboxed_api/examples/zlib/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# Description: Sandboxed API reimplementation of zlib's zpipe.c example.
1616

1717
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
18+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
1819
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
1920
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
2021

sandboxed_api/sandbox2/examples/custom_fork/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# from the current process
1818

1919
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
20+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
2021
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
2122

2223
licenses(["notice"])

sandboxed_api/sandbox2/examples/network/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
# - sandbox2::Comms for data exchange (IPC)
2020

2121
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
22+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
2223
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
2324

2425
licenses(["notice"])

sandboxed_api/sandbox2/examples/network_proxy/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# The 'network proxy' example demonstrates how to use network proxy server.
1616

1717
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
18+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
1819
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
1920

2021
licenses(["notice"])

sandboxed_api/sandbox2/examples/static/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# - test to ensure sandbox executor runs sandboxee without issue
2121

2222
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
23+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
2324
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
2425

2526
licenses(["notice"])

sandboxed_api/sandbox2/examples/tool/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# - test to ensure sandbox executor runs sandboxee without issue
2222

2323
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
24+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
2425
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
2526

2627
licenses(["notice"])

0 commit comments

Comments
 (0)