-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
95 lines (59 loc) · 2.5 KB
/
WORKSPACE
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
# Declare the local Bazel workspace.
workspace(
name = "rules_zig",
)
load(":internal_deps.bzl", "rules_zig_internal_deps")
# Fetch deps needed only locally for development
rules_zig_internal_deps()
load("//zig:repositories.bzl", "rules_zig_dependencies", "zig_register_toolchains")
# Fetch dependencies which users need as well
rules_zig_dependencies()
# Use the latest known Zig SDK version for testing
# buildifier: disable=bzl-visibility
load("//zig/private:versions.bzl", "TOOL_VERSIONS")
zig_register_toolchains(
name = "zig",
zig_version = TOOL_VERSIONS.keys()[0],
)
# rules_python dependencies
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
# For running our own unit tests
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
# For buildifier linting
load("@buildifier_prebuilt//:deps.bzl", "buildifier_prebuilt_deps")
buildifier_prebuilt_deps()
load("@buildifier_prebuilt//:defs.bzl", "buildifier_prebuilt_register_toolchains")
buildifier_prebuilt_register_toolchains()
# For running integration tests
load("@rules_bazel_integration_test//bazel_integration_test:deps.bzl", "bazel_integration_test_rules_dependencies")
bazel_integration_test_rules_dependencies()
load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")
bazel_starlib_dependencies()
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "bazel_binaries")
# NOTE: Keep in sync with MODULE.bazel.
bazel_binaries(versions = [
"//:.bazelversion",
"6.3.0",
])
# Stardoc dependencies
load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
stardoc_repositories()
load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
rules_jvm_external_deps()
load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()
load("@io_bazel_stardoc//:deps.bzl", "stardoc_external_deps")
stardoc_external_deps()
load("@stardoc_maven//:defs.bzl", stardoc_pinned_maven_install = "pinned_maven_install")
stardoc_pinned_maven_install()
############################################
# Gazelle, for generating bzl_library targets
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.19.3")
gazelle_dependencies()
load("@bazel_skylib_gazelle_plugin//:workspace.bzl", "bazel_skylib_gazelle_plugin_workspace")
bazel_skylib_gazelle_plugin_workspace()