File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ bazel_dep(name = "rules_cc", version = "0.0.2")
15
15
bazel_dep (name = "platforms" , version = "0.0.5" )
16
16
bazel_dep (name = "protobuf" , version = "21.7" , repo_name = "com_google_protobuf" )
17
17
bazel_dep (name = "rules_proto" , version = "5.3.0-21.7" )
18
+ bazel_dep (name = "nlohmann_json" , version = "3.6.1" , repo_name = "com_github_nlohmann_json" )
18
19
19
20
non_module_deps = use_extension ("//swift:extensions.bzl" , "non_module_deps" )
20
21
use_repo (
@@ -28,7 +29,6 @@ use_repo(
28
29
"com_github_apple_swift_nio_transport_services" ,
29
30
"com_github_apple_swift_protobuf" ,
30
31
"com_github_grpc_grpc_swift" ,
31
- "com_github_nlohmann_json" ,
32
32
)
33
33
34
34
# Dev dependencies
Original file line number Diff line number Diff line change @@ -73,6 +73,17 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
73
73
strip_prefix = "rules_proto-d3702796e768abe7086d2dc7e299d3f7aeb1dd34" ,
74
74
)
75
75
76
+ _maybe (
77
+ http_archive ,
78
+ name = "com_github_nlohmann_json" ,
79
+ urls = [
80
+ "https://github.com/nlohmann/json/releases/download/v3.6.1/include.zip" ,
81
+ ],
82
+ sha256 = "69cc88207ce91347ea530b227ff0776db82dcb8de6704e1a3d74f4841bc651cf" ,
83
+ type = "zip" ,
84
+ build_file = "@build_bazel_rules_swift//third_party:com_github_nlohmann_json/BUILD.overlay" ,
85
+ )
86
+
76
87
_maybe (
77
88
http_archive ,
78
89
name = "com_github_apple_swift_protobuf" ,
@@ -136,17 +147,6 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
136
147
build_file = "@build_bazel_rules_swift//third_party:com_github_apple_swift_log/BUILD.overlay" ,
137
148
)
138
149
139
- _maybe (
140
- http_archive ,
141
- name = "com_github_nlohmann_json" ,
142
- urls = [
143
- "https://github.com/nlohmann/json/releases/download/v3.6.1/include.zip" ,
144
- ],
145
- sha256 = "69cc88207ce91347ea530b227ff0776db82dcb8de6704e1a3d74f4841bc651cf" ,
146
- type = "zip" ,
147
- build_file = "@build_bazel_rules_swift//third_party:com_github_nlohmann_json/BUILD.overlay" ,
148
- )
149
-
150
150
# It relies on `index-import` to import indexes into Bazel's remote
151
151
# cache and allow using a global index internally in workers.
152
152
# Note: this is only loaded if swift.index_while_building_v2 is enabled
You can’t perform that action at this time.
0 commit comments