forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
45 lines (38 loc) · 1.44 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
# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
# No tags, no releases. Let's go with today's head.
commit = "1e08f8e0507b6b6b1f4416a9a22cf5c28beaba93",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
)
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_rust", version = "0.49.3")
bazel_dep(name = "rules_python", version = "0.34.0")
# TODO: how to sync this with the PYTHON_VERSION in package_versions.bzl?
PYTHON_VERSION = "3.12.3"
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
# We can specify the exact version.
python_version = PYTHON_VERSION,
)
bazel_dep(name = "aspect_rules_py", version = "0.7.4")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "cmk_agent_based",
python_version = PYTHON_VERSION,
requirements_by_platform = {
"//packages/cmk-agent-based:requirements_lock.txt": "linux_*,osx_*",
},
)
use_repo(pip, "cmk_agent_based")
pip.parse(
hub_name = "cmk_werks",
python_version = PYTHON_VERSION,
requirements_by_platform = {
"//packages/cmk-werks:requirements_lock.txt": "linux_*,osx_*",
},
)
use_repo(pip, "cmk_werks")