-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE.bazel
161 lines (108 loc) · 4.52 KB
/
WORKSPACE.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
151
152
153
154
155
156
157
158
159
160
161
workspace(name = "rules_terraform")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
# Skylib
SKYLIB_VERSION = "16de038c484145363340eeaf0e97a0c9889a931b"
http_archive(
name = "bazel_skylib",
sha256 = "96e0cd3f731f0caef9e9919aa119ecc6dace36b149c2f47e40aa50587790402b",
strip_prefix = "bazel-skylib-%s" % SKYLIB_VERSION,
url = "https://github.com/bazelbuild/bazel-skylib/archive/%s.tar.gz" % SKYLIB_VERSION,
)
# Python
PYTHON_VERSION = "0efcd94d0ee6e1e56b27d25469c28502282fab5b"
http_archive(
name = "rules_python",
sha256 = "e611111d092e54f04e0818d1bc89aad6a841c6f50cbe96e8ec13a6eddcfbf354",
strip_prefix = "rules_python-%s" % PYTHON_VERSION,
url = "https://github.com/bazelbuild/rules_python/archive/%s.zip" % PYTHON_VERSION,
)
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python3_11",
python_version = "3.11",
)
# Go
GO_VERSION = "0.34.0"
http_archive(
name = "io_bazel_rules_go",
sha256 = "9c44b54c51ca9aafb73e9dd9e71514cde7679b6cd165bf33abde847504a778ba",
strip_prefix = "rules_go-%s" % GO_VERSION,
url = "https://github.com/bazelbuild/rules_go/archive/v%s.zip" % GO_VERSION,
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.17.2")
# Gazelle
http_archive(
name = "bazel_gazelle",
sha256 = "501deb3d5695ab658e82f6f6f549ba681ea3ca2a5fb7911154b5aa45596183fa",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.26.0/bazel-gazelle-v0.26.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.26.0/bazel-gazelle-v0.26.0.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies(go_repository_default_config = "@//:WORKSPACE.bazel")
# Rules pkg
RULES_PKG_VERSION = "0.10.1"
http_archive(
name = "rules_pkg",
sha256 = "d250924a2ecc5176808fc4c25d5cf5e9e79e6346d79d5ab1c493e289e722d1d0",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/%s/rules_pkg-%s.tar.gz" % (RULES_PKG_VERSION, RULES_PKG_VERSION),
)
# Rules Javascript
RULES_JAVASCRIPT_VERSION = "3a33078b1b792fd322df2d233c664e9ccfa87ccf"
http_archive(
name = "better_rules_javascript",
sha256 = "fe08f3b046ff1ec1cece2c935832c9274d4903866958115f6326fee803b426f4",
strip_prefix = "rules_javascript-%s" % RULES_JAVASCRIPT_VERSION,
url = "https://github.com/redoapp/rules_javascript/archive/%s.tar.gz" % RULES_JAVASCRIPT_VERSION,
)
load("@better_rules_javascript//rules:workspace.bzl", javascript_repositories = "repositories")
javascript_repositories()
# Protobuf
http_archive(
name = "com_google_protobuf",
sha256 = "3bd7828aa5af4b13b99c191e8b1e884ebfa9ad371b0ce264605d347f135d2568",
strip_prefix = "protobuf-3.19.4",
url = "https://github.com/protocolbuffers/protobuf/archive/v3.19.4.tar.gz",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
# Rivet Bazel Util
RIVET_BAZEL_UTIL_VERSION = "f0c1bbe0935c3994e4c1ea4b3370a47d8df9819e"
http_archive(
name = "rivet_bazel_util",
sha256 = "fca24b50c6544c0c2146bca6de7b00558c276020e64692b770361d650ed97b6e",
strip_prefix = "rivet-bazel-util-%s" % RIVET_BAZEL_UTIL_VERSION,
url = "https://github.com/rivethealth/rivet-bazel-util/archive/%s.tar.gz" % RIVET_BAZEL_UTIL_VERSION,
)
# Files
FILE_VERSION = "a1ad3467b10abe26af810a419df5b695fc25d576"
http_archive(
name = "rules_file",
sha256 = "2e4b28e2a1dd57fde16f05e88391da32a395ebe58ac88ca749b6e423758b6f84",
strip_prefix = "rules_file-%s" % FILE_VERSION,
url = "https://github.com/hello-seer/rules_file/archive/%s.zip" % FILE_VERSION,
)
load("@rules_file//rules:init.bzl", "file_init")
file_init()
load("@rules_file//rules:workspace.bzl", "file_repositories")
file_repositories()
# Buildifier
http_archive(
name = "com_github_bazelbuild_buildtools",
sha256 = "ae34c344514e08c23e90da0e2d6cb700fcd28e80c02e23e4d5715dddcb42f7b3",
strip_prefix = "buildtools-4.2.2",
url = "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.2.tar.gz",
)
# Rules Terraform
load("//:workspace.bzl", rules_terraform_deps = "deps")
rules_terraform_deps()
# Internal
load("//tools/file:workspace.bzl", "file_repositories")
file_repositories()
load("//tools/npm:workspace.bzl", "npm_repositories")
npm_repositories()
load("//terraform/test:workspace.bzl", "tf_test_repositories")
tf_test_repositories()