-
Notifications
You must be signed in to change notification settings - Fork 93
/
MODULE.bazel
150 lines (139 loc) · 5.39 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
module(name = "com_github_buildbarn_bb_storage")
bazel_dep(name = "aspect_bazel_lib", version = "2.9.4")
bazel_dep(name = "aspect_rules_js", version = "2.1.2")
bazel_dep(name = "bazel_remote_apis", version = "0")
bazel_dep(name = "gazelle", version = "0.40.0")
bazel_dep(name = "googleapis", version = "0.0.0-20240819-fe8ba054a")
bazel_dep(name = "jsonnet_go", version = "0.20.0")
bazel_dep(name = "opentelemetry-proto", version = "1.4.0")
bazel_dep(name = "protobuf", version = "29.1")
bazel_dep(name = "rules_go", version = "0.50.1")
bazel_dep(name = "rules_jsonnet", version = "0.6.0")
bazel_dep(name = "rules_oci", version = "2.0.1")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "rules_proto", version = "7.0.2")
bazel_dep(name = "toolchains_llvm", version = "1.2.0")
git_override(
module_name = "bazel_remote_apis",
commit = "253013303c9e1d52ebdeb5a3f0f869919e882f20",
remote = "https://github.com/bazelbuild/remote-apis.git",
)
single_version_override(
module_name = "gazelle",
patches = ["//:patches/gazelle/dont-flatten-srcs.diff"],
)
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.23.3")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"cc_mvdan_gofumpt",
"com_github_aohorodnyk_mimeheader",
"com_github_aws_aws_sdk_go_v2",
"com_github_aws_aws_sdk_go_v2_config",
"com_github_aws_aws_sdk_go_v2_credentials",
"com_github_aws_aws_sdk_go_v2_service_s3",
"com_github_aws_aws_sdk_go_v2_service_sts",
"com_github_bazelbuild_buildtools",
"com_github_fxtlabs_primes",
"com_github_go_jose_go_jose_v3",
"com_github_google_uuid",
"com_github_gorilla_mux",
"com_github_grpc_ecosystem_go_grpc_middleware",
"com_github_grpc_ecosystem_go_grpc_prometheus",
"com_github_jmespath_go_jmespath",
"com_github_klauspost_compress",
"com_github_lazybeaver_xorshift",
"com_github_prometheus_client_golang",
"com_github_prometheus_client_model",
"com_github_prometheus_common",
"com_github_sercand_kuberesolver_v5",
"com_github_stretchr_testify",
"com_google_cloud_go_longrunning",
"com_google_cloud_go_storage",
"io_opentelemetry_go_contrib_instrumentation_google_golang_org_grpc_otelgrpc",
"io_opentelemetry_go_contrib_propagators_b3",
"io_opentelemetry_go_otel",
"io_opentelemetry_go_otel_exporters_jaeger",
"io_opentelemetry_go_otel_exporters_otlp_otlptrace",
"io_opentelemetry_go_otel_sdk",
"io_opentelemetry_go_otel_trace",
"io_opentelemetry_go_proto_otlp",
"org_golang_google_api",
"org_golang_google_genproto_googleapis_bytestream",
"org_golang_google_genproto_googleapis_rpc",
"org_golang_google_grpc",
"org_golang_google_grpc_security_advancedtls",
"org_golang_google_protobuf",
"org_golang_x_lint",
"org_golang_x_oauth2",
"org_golang_x_sync",
"org_golang_x_sys",
"org_uber_go_mock",
)
go_deps_dev = use_extension("@gazelle//:extensions.bzl", "go_deps", dev_dependency = True)
go_deps_dev.gazelle_override(
build_file_generation = "on",
path = "github.com/cncf/xds/go",
)
go_deps_dev.module_override(
patches = ["//:patches/com_github_grpc_ecosystem_go_grpc_prometheus/client-metrics-prevent-handled-twice.diff"],
path = "github.com/grpc-ecosystem/go-grpc-prometheus",
)
go_deps_dev.module_override(
patches = ["//:patches/org_golang_google_genproto_googleapis_bytestream/service-registrar.diff"],
path = "google.golang.org/genproto/googleapis/bytestream",
)
go_deps_dev.module_override(
patches = ["//:patches/org_golang_x_lint/generic.diff"],
path = "golang.org/x/lint",
)
go_deps_dev.module_override(
patches = ["//:patches/org_golang_x_oauth2/injectable-clock.diff"],
path = "golang.org/x/oauth2",
)
go_deps_dev.module_override(
patches = ["//:patches/org_golang_x_sys/o-search.diff"],
path = "golang.org/x/sys",
)
go_deps_dev.module_override(
patches = ["//:patches/org_uber_go_mock/mocks-for-funcs.diff"],
path = "go.uber.org/mock",
)
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_twbs_bootstrap",
build_file_content = """exports_files(["css/bootstrap.min.css", "js/bootstrap.min.js"])""",
sha256 = "395342b2974e3350560e65752d36aab6573652b11cc6cb5ef79a2e5e83ad64b1",
strip_prefix = "bootstrap-5.1.0-dist",
urls = ["https://github.com/twbs/bootstrap/releases/download/v5.1.0/bootstrap-5.1.0-dist.zip"],
)
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(
llvm_version = "14.0.0",
)
use_repo(llvm, "llvm_toolchain_llvm")
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "com_github_buildbarn_bb_storage_npm",
link_workspace = "com_github_buildbarn_bb_storage",
pnpm_lock = "//:pnpm-lock.yaml",
)
use_repo(npm, "com_github_buildbarn_bb_storage_npm")
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "distroless_static",
digest = "sha256:7e5c6a2a4ae854242874d36171b31d26e0539c98fc6080f942f16b03e82851ab",
image = "gcr.io/distroless/static",
platforms = [
"linux/amd64",
"linux/arm64/v8",
],
)
use_repo(
oci,
"distroless_static",
"distroless_static_linux_amd64",
"distroless_static_linux_arm64_v8",
)