-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMODULE.bazel
43 lines (34 loc) · 1.24 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
module(name = "fizzbee")
# Go with gazelle see https://github.com/bazel-contrib/rules_go/blob/master/docs/go/core/bzlmod.md
bazel_dep(name = "rules_go", version = "0.46.0")
bazel_dep(name = "gazelle", version = "0.34.0")
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.22.4")
# External go deps
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
bazel_dep(name = "platforms", version = "0.0.10")
# run "bazel mod tidy" to update these after updating go.mod
use_repo(
go_deps,
"com_github_golang_glog",
"com_github_huandu_go_clone",
"com_github_stretchr_testify",
"in_gopkg_yaml_v3",
"net_starlark_go",
"org_golang_google_protobuf",
"org_golang_x_sys",
)
# Proto
bazel_dep(name = "protobuf", version = "26.0")
# Python
bazel_dep(name = "rules_python", version = "1.0.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.12", is_default = True)
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.12",
requirements_lock = "//third_party:requirements_lock.txt",
)
use_repo(pip, "pypi")