Skip to content

Commit 204f6d5

Browse files
committed
Initial commit
0 parents  commit 204f6d5

File tree

199 files changed

+26263
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+26263
-0
lines changed

.bazelversion

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.2.0

.clang-format

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Language: Proto
2+
BasedOnStyle: Google

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.pb.go
2+
.*.swp
3+
.swp
4+
/bazel-*
5+
/target

BUILD.bazel

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
load("@gazelle//:def.bzl", "gazelle")
2+
3+
# gazelle:go_grpc_compilers @rules_go//proto:go_proto,@rules_go//proto:go_grpc_v2
4+
# gazelle:go_naming_convention_external import
5+
# gazelle:prefix github.com/buildbarn/bb-playground
6+
# gazelle:resolve proto go google/rpc/status.proto @org_golang_google_genproto_googleapis_rpc//status
7+
# gazelle:resolve proto go pkg/proto/configuration/eviction/eviction.proto @com_github_buildbarn_bb_storage//pkg/proto/configuration/eviction
8+
# gazelle:resolve proto go pkg/proto/configuration/filesystem/virtual/virtual.proto @com_github_buildbarn_bb_remote_execution//pkg/proto/configuration/filesystem/virtual
9+
# gazelle:resolve proto go pkg/proto/configuration/global/global.proto @com_github_buildbarn_bb_storage//pkg/proto/configuration/global
10+
# gazelle:resolve proto go pkg/proto/configuration/grpc/grpc.proto @com_github_buildbarn_bb_storage//pkg/proto/configuration/grpc
11+
# gazelle:resolve proto google/rpc/status.proto @googleapis//google/rpc:status_proto
12+
# gazelle:resolve proto pkg/proto/configuration/eviction/eviction.proto @com_github_buildbarn_bb_storage//pkg/proto/configuration/eviction:eviction_proto
13+
# gazelle:resolve proto pkg/proto/configuration/filesystem/virtual/virtual.proto @com_github_buildbarn_bb_remote_execution//pkg/proto/configuration/filesystem/virtual:virtual_proto
14+
# gazelle:resolve proto pkg/proto/configuration/global/global.proto @com_github_buildbarn_bb_storage//pkg/proto/configuration/global:global_proto
15+
# gazelle:resolve proto pkg/proto/configuration/grpc/grpc.proto @com_github_buildbarn_bb_storage//pkg/proto/configuration/grpc:grpc_proto
16+
gazelle(
17+
name = "gazelle",
18+
)

MODULE.bazel

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
module(name = "com_github_buildbarn_bb_playground")
2+
3+
bazel_dep(name = "com_github_buildbarn_bb_remote_execution")
4+
bazel_dep(name = "com_github_buildbarn_bb_storage")
5+
bazel_dep(name = "com_github_buildbarn_go_xdr")
6+
bazel_dep(name = "gazelle", version = "0.37.0")
7+
bazel_dep(name = "googleapis", version = "0.0.0-20240326-1c8d509c5")
8+
bazel_dep(name = "protobuf", version = "27.1")
9+
bazel_dep(name = "rules_go", version = "0.48.1")
10+
bazel_dep(name = "toolchains_llvm", version = "1.0.0")
11+
12+
git_override(
13+
module_name = "com_github_buildbarn_bb_remote_execution",
14+
commit = "58ffbe3c491b1c9b4bff1f43cb149898c35ada6c",
15+
remote = "https://github.com/buildbarn/bb-remote-execution.git",
16+
)
17+
18+
git_override(
19+
module_name = "com_github_buildbarn_bb_storage",
20+
commit = "3f5e30c53d7b52036eb758a63bc98e706f5d4d5c",
21+
remote = "https://github.com/buildbarn/bb-storage.git",
22+
)
23+
24+
git_override(
25+
module_name = "com_github_buildbarn_go_xdr",
26+
commit = "236788cf9e8948a1e8875c7dd243e2be180cdfd7",
27+
remote = "https://github.com/buildbarn/go-xdr.git",
28+
)
29+
30+
git_override(
31+
module_name = "gazelle",
32+
commit = "4d0129d7adae33e8e648d3624aff8fa8f93f375b",
33+
patches = ["//:patches/gazelle/googleapis.diff"],
34+
remote = "https://github.com/bazelbuild/bazel-gazelle.git",
35+
)
36+
37+
git_override(
38+
module_name = "rules_antlr",
39+
commit = "89a29cca479363a5aee53e203719510bdc6be6ff",
40+
patches = [
41+
"//:patches/rules_antlr/antlr-4.10.diff",
42+
"//:patches/rules_antlr/bzlmod.diff",
43+
],
44+
remote = "https://github.com/marcohu/rules_antlr.git",
45+
)
46+
47+
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
48+
go_sdk.download(version = "1.23.0")
49+
50+
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
51+
go_deps.from_file(go_mod = "//:go.mod")
52+
use_repo(go_deps, "cc_mvdan_gofumpt", "com_github_buildbarn_go_cdc", "com_github_stretchr_testify", "org_golang_google_genproto_googleapis_rpc", "org_golang_google_grpc", "org_golang_google_protobuf", "org_golang_x_exp", "org_golang_x_sync", "org_uber_go_mock")
53+
54+
go_deps_dev = use_extension("@gazelle//:extensions.bzl", "go_deps", dev_dependency = True)
55+
go_deps_dev.gazelle_override(
56+
build_file_generation = "on",
57+
directives = [
58+
"gazelle:go_grpc_compilers @io_bazel_rules_go//proto:go_proto,@io_bazel_rules_go//proto:go_grpc_v2",
59+
"gazelle:resolve proto go build/bazel/semver/semver.proto //build/bazel/semver",
60+
"gazelle:resolve proto go google/api/annotations.proto @org_golang_google_genproto_googleapis_api//annotations",
61+
"gazelle:resolve proto go google/longrunning/operations.proto @com_google_cloud_go_longrunning//autogen/longrunningpb",
62+
"gazelle:resolve proto go google/rpc/status.proto @org_golang_google_genproto_googleapis_rpc//status",
63+
"gazelle:resolve proto google/api/annotations.proto @googleapis//google/api:annotations_proto",
64+
"gazelle:resolve proto google/longrunning/operations.proto @googleapis//google/longrunning:operations_proto",
65+
"gazelle:resolve proto google/rpc/status.proto @googleapis//google/rpc:status_proto",
66+
],
67+
path = "github.com/bazelbuild/remote-apis",
68+
)
69+
go_deps_dev.module_override(
70+
patches = [
71+
"@com_github_buildbarn_bb_remote_execution//:patches/org_uber_go_mock/generics.diff",
72+
"@com_github_buildbarn_bb_storage//:patches/org_uber_go_mock/mocks-for-funcs.diff",
73+
],
74+
path = "go.uber.org/mock",
75+
)
76+
77+
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
78+
llvm.toolchain(
79+
llvm_version = "17.0.6",
80+
)
81+
use_repo(llvm, "llvm_toolchain_llvm")

0 commit comments

Comments
 (0)