-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMODULE.bazel
44 lines (39 loc) · 1.3 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
module(
name = "rules_bazel_integration_test",
version = "0.0.0",
)
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_python", version = "0.40.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.21.0")
bazel_dep(name = "rules_shell", version = "0.3.0")
# not a direct dependency, but required here for bazel starlib's difftest macros to work
bazel_dep(
name = "buildifier_prebuilt",
version = "6.1.2",
)
register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain")
# Must keep the Bazel version listed in WORKSPACE in sync with those loaded
# below.
bazel_binaries = use_extension(
"//:extensions.bzl",
"bazel_binaries",
dev_dependency = True,
)
bazel_binaries.download(version_file = "//:.bazelversion")
bazel_binaries.download(version = "last_green")
bazel_binaries.local(path = "tools/fake_bazel.sh")
use_repo(
bazel_binaries,
"bazel_binaries",
"bazel_binaries_bazelisk",
"build_bazel_bazel_.bazelversion",
"build_bazel_bazel_last_green",
"build_bazel_bazel_local",
)
download_sample_file = use_extension(
"//examples/env_var_with_rootpath:sample_file_extension.bzl",
"download_sample_file",
dev_dependency = True,
)
use_repo(download_sample_file, "sample_file")