1
1
workspace (
2
2
name = "com_github_scionproto_scion" ,
3
- managed_directories = {
4
- "@rules_openapi_npm" : ["rules_openapi/tools/node_modules" ],
5
- },
6
3
)
7
4
8
5
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" , "http_file" )
@@ -31,22 +28,28 @@ lint_setup({
31
28
32
29
http_archive (
33
30
name = "aspect_bazel_lib" ,
34
- sha256 = "e3151d87910f69cf1fc88755392d7c878034a69d6499b287bcfc00b1cf9bb415 " ,
35
- strip_prefix = "bazel-lib-1.32.1 " ,
36
- url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.32.1 .tar.gz" ,
31
+ sha256 = "a185ccff9c1b8589c63f66d7eb908de15c5d6bb05562be5f46336c53e7a7326a " ,
32
+ strip_prefix = "bazel-lib-2.0.0-rc1 " ,
33
+ url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.0.0-rc1/bazel-lib-v2.0.0-rc1 .tar.gz" ,
37
34
)
38
35
39
- load ("@aspect_bazel_lib//lib:repositories.bzl" , "aspect_bazel_lib_dependencies" )
36
+ load ("@aspect_bazel_lib//lib:repositories.bzl" , "aspect_bazel_lib_dependencies" , "aspect_bazel_lib_register_toolchains" )
37
+
38
+ # Required bazel-lib dependencies
40
39
41
40
aspect_bazel_lib_dependencies ()
42
41
42
+ # Register bazel-lib toolchains
43
+
44
+ aspect_bazel_lib_register_toolchains ()
45
+
43
46
# Bazel rules for Golang
44
47
http_archive (
45
48
name = "io_bazel_rules_go" ,
46
- sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3 " ,
49
+ sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023 " ,
47
50
urls = [
48
- "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41 .0/rules_go-v0.41 .0.zip" ,
49
- "https://github.com/bazelbuild/rules_go/releases/download/v0.41 .0/rules_go-v0.41 .0.zip" ,
51
+ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42 .0/rules_go-v0.42 .0.zip" ,
52
+ "https://github.com/bazelbuild/rules_go/releases/download/v0.42 .0/rules_go-v0.42 .0.zip" ,
50
53
],
51
54
)
52
55
@@ -60,28 +63,14 @@ go_register_toolchains(
60
63
# Gazelle
61
64
http_archive (
62
65
name = "bazel_gazelle" ,
63
- sha256 = "29218f8e0cebe583643cbf93cae6f971be8a2484cdcfa1e45057658df8d54002 " ,
66
+ sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809 " ,
64
67
urls = [
65
- "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.32 .0/bazel-gazelle-v0.32 .0.tar.gz" ,
66
- "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.32 .0/bazel-gazelle-v0.32 .0.tar.gz" ,
68
+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33 .0/bazel-gazelle-v0.33 .0.tar.gz" ,
69
+ "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33 .0/bazel-gazelle-v0.33 .0.tar.gz" ,
67
70
],
68
71
)
69
72
70
- load ("@bazel_gazelle//:deps.bzl" , "gazelle_dependencies" , "go_repository" )
71
-
72
- # Explictly override golang.org/x/sys. Our github.com/quic-go/quic-go cannot
73
- # compile without at least golang.org/x/[email protected] . The rules_go version that
74
- # we use (v0.34.0) imports an older version. A recent enough version was only introduced
75
- # in v0.36.0. See: https://github.com/bazelbuild/rules_go/commit/64b9226a3bca997866b8831889ffb9de87405a0d
76
- #
77
- # This version should be kept in sync with the go_deps.bzl file. We can remove it
78
- # once we update the rules_go version.
79
- go_repository (
80
- name = "org_golang_x_sys" ,
81
- importpath = "golang.org/x/sys" ,
82
- sum = "h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=" ,
83
- version = "v0.8.0" ,
84
- )
73
+ load ("@bazel_gazelle//:deps.bzl" , "gazelle_dependencies" )
85
74
86
75
go_rules_dependencies ()
87
76
@@ -94,26 +83,20 @@ load("//:go_deps.bzl", "go_deps")
94
83
95
84
go_deps ()
96
85
97
- ## Explictly override xerrors: https://github.com/bazelbuild/bazel-gazelle/issues/1217
98
- # go_repository(
99
- # name = "org_golang_x_xerrors",
100
- # importpath = "golang.org/x/xerrors",
101
- # sum = "h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=",
102
- # version = "v0.0.0-20220907171357-04be3eba64a2",
103
- # )
104
-
105
86
gazelle_dependencies ()
106
87
107
88
# XXX Needs to be before rules_docker
108
89
# Python rules
109
90
http_archive (
110
91
name = "rules_python" ,
111
- sha256 = "8c8fe44ef0a9afc256d1e75ad5f448bb59b81aba149b8958f02f7b3a98f5d9b4 " ,
112
- strip_prefix = "rules_python-0.13 .0" ,
113
- url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.13 .0.tar.gz" ,
92
+ sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b " ,
93
+ strip_prefix = "rules_python-0.26 .0" ,
94
+ url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26 .0.tar.gz" ,
114
95
)
115
96
116
- load ("@rules_python//python:repositories.bzl" , "python_register_toolchains" )
97
+ load ("@rules_python//python:repositories.bzl" , "py_repositories" , "python_register_toolchains" )
98
+
99
+ py_repositories ()
117
100
118
101
python_register_toolchains (
119
102
name = "python3_10" ,
@@ -131,10 +114,10 @@ install_python_deps()
131
114
132
115
http_archive (
133
116
name = "rules_pkg" ,
134
- sha256 = "62eeb544ff1ef41d786e329e1536c1d541bb9bcad27ae984d57f18f314018e66 " ,
117
+ sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8 " ,
135
118
urls = [
136
- "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.6.0 /rules_pkg-0.6.0 .tar.gz" ,
137
- "https://github.com/bazelbuild/rules_pkg/releases/download/0.6.0 /rules_pkg-0.6.0 .tar.gz" ,
119
+ "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1 /rules_pkg-0.9.1 .tar.gz" ,
120
+ "https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1 /rules_pkg-0.9.1 .tar.gz" ,
138
121
],
139
122
)
140
123
@@ -158,9 +141,8 @@ rules_antlr_dependencies("4.9.3")
158
141
159
142
http_archive (
160
143
name = "io_bazel_rules_docker" ,
161
- sha256 = "85ffff62a4c22a74dbd98d05da6cf40f497344b3dbf1e1ab0a37ab2a1a6ca014" ,
162
- strip_prefix = "rules_docker-0.23.0" ,
163
- urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.23.0/rules_docker-v0.23.0.tar.gz" ],
144
+ sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf" ,
145
+ urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz" ],
164
146
)
165
147
166
148
load ("@io_bazel_rules_docker//repositories:repositories.bzl" , container_repositories = "repositories" )
@@ -241,9 +223,9 @@ container_pull(
241
223
# protobuf/gRPC
242
224
http_archive (
243
225
name = "rules_proto_grpc" ,
244
- sha256 = "7954abbb6898830cd10ac9714fbcacf092299fda00ed2baf781172f545120419 " ,
245
- strip_prefix = "rules_proto_grpc-3.1.1 " ,
246
- urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/3.1.1 .tar.gz" ],
226
+ sha256 = "9ba7299c5eb6ec45b6b9a0ceb9916d0ab96789ac8218269322f0124c0c0d24e2 " ,
227
+ strip_prefix = "rules_proto_grpc-4.5.0 " ,
228
+ urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/releases/download/4.5.0/rules_proto_grpc-4.5.0 .tar.gz" ],
247
229
)
248
230
249
231
load ("@rules_proto_grpc//:repositories.bzl" , "rules_proto_grpc_repos" , "rules_proto_grpc_toolchains" )
@@ -258,18 +240,16 @@ rules_proto_dependencies()
258
240
259
241
rules_proto_toolchains ()
260
242
261
- load ("@rules_proto_grpc//python:repositories.bzl" , rules_proto_grpc_python_repos = "python_repos" )
262
-
263
- rules_proto_grpc_python_repos ()
243
+ load ("@rules_proto_grpc//buf:repositories.bzl" , rules_proto_grpc_buf_repos = "buf_repos" )
264
244
265
- load ("@com_github_grpc_grpc//bazel:grpc_deps.bzl" , "grpc_deps" )
266
-
267
- grpc_deps ()
245
+ rules_proto_grpc_buf_repos ()
268
246
269
247
http_archive (
270
248
name = "com_github_bazelbuild_buildtools" ,
271
- strip_prefix = "buildtools-master" ,
272
- url = "https://github.com/bazelbuild/buildtools/archive/2.2.1.zip" ,
249
+ strip_prefix = "buildtools-6.3.3" ,
250
+ urls = [
251
+ "https://github.com/bazelbuild/buildtools/archive/refs/tags/6.3.3.tar.gz" ,
252
+ ],
273
253
)
274
254
275
255
http_file (
@@ -290,10 +270,32 @@ load("@com_github_scionproto_scion_python_lint_deps//:requirements.bzl", install
290
270
291
271
install_python_lint_deps ()
292
272
293
- load ("//rules_openapi:dependencies.bzl" , "rules_openapi_dependencies" )
273
+ http_archive (
274
+ name = "aspect_rules_js" ,
275
+ sha256 = "a949d56fed8fa0a8dd82a0a660acc949253a05b2b0c52a07e4034e27f11218f6" ,
276
+ strip_prefix = "rules_js-1.33.1" ,
277
+ url = "https://github.com/aspect-build/rules_js/releases/download/v1.33.1/rules_js-v1.33.1.tar.gz" ,
278
+ )
279
+
280
+ load ("@aspect_rules_js//js:repositories.bzl" , "rules_js_dependencies" )
281
+
282
+ rules_js_dependencies ()
294
283
295
- rules_openapi_dependencies ()
284
+ load ("@rules_nodejs//nodejs:repositories.bzl" , "DEFAULT_NODE_VERSION" , "nodejs_register_toolchains" )
285
+
286
+ nodejs_register_toolchains (
287
+ name = "nodejs" ,
288
+ node_version = DEFAULT_NODE_VERSION ,
289
+ )
290
+
291
+ load ("@aspect_rules_js//npm:npm_import.bzl" , "npm_translate_lock" )
292
+
293
+ npm_translate_lock (
294
+ name = "npm" ,
295
+ pnpm_lock = "@com_github_scionproto_scion//private/mgmtapi/tools:pnpm-lock.yaml" ,
296
+ verify_node_modules_ignored = "@com_github_scionproto_scion//:.bazelignore" ,
297
+ )
296
298
297
- load ("//rules_openapi:install .bzl" , "rules_openapi_install_yarn_dependencies " )
299
+ load ("@npm//:repositories .bzl" , "npm_repositories " )
298
300
299
- rules_openapi_install_yarn_dependencies ()
301
+ npm_repositories ()
0 commit comments