Skip to content

Commit e831c3a

Browse files
Fix build_file labels (#1425)
Regressed for WORKSPACE users in 7fafc9b. --------- Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent 0d8c253 commit e831c3a

File tree

1 file changed

+40
-14
lines changed

1 file changed

+40
-14
lines changed

swift/repositories.bzl

+40-14
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
7979
],
8080
sha256 = "69cc88207ce91347ea530b227ff0776db82dcb8de6704e1a3d74f4841bc651cf",
8181
type = "zip",
82-
build_file = "//third_party:com_github_nlohmann_json/BUILD.overlay",
82+
build_file = Label(
83+
"//third_party:com_github_nlohmann_json/BUILD.overlay",
84+
),
8385
)
8486

8587
_maybe(
@@ -96,7 +98,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
9698
urls = ["https://github.com/apple/swift-argument-parser/archive/refs/tags/1.3.0.tar.gz"],
9799
sha256 = "e5010ff37b542807346927ba68b7f06365a53cf49d36a6df13cef50d86018204",
98100
strip_prefix = "swift-argument-parser-1.3.0",
99-
build_file = "//third_party:com_github_apple_swift_argument_parser/BUILD.overlay",
101+
build_file = Label(
102+
"//third_party:com_github_apple_swift_argument_parser/BUILD.overlay",
103+
),
100104
)
101105

102106
_maybe(
@@ -105,7 +109,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
105109
urls = ["https://github.com/apple/swift-protobuf/archive/1.20.2.tar.gz"], # pinned to grpc-swift version
106110
sha256 = "3fb50bd4d293337f202d917b6ada22f9548a0a0aed9d9a4d791e6fbd8a246ebb",
107111
strip_prefix = "swift-protobuf-1.20.2/",
108-
build_file = "//third_party:com_github_apple_swift_protobuf/BUILD.overlay",
112+
build_file = Label(
113+
"//third_party:com_github_apple_swift_protobuf/BUILD.overlay",
114+
),
109115
)
110116

111117
_maybe(
@@ -114,7 +120,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
114120
urls = ["https://github.com/grpc/grpc-swift/archive/1.16.0.tar.gz"], # latest at time of writing
115121
sha256 = "58b60431d0064969f9679411264b82e40a217ae6bd34e17096d92cc4e47556a5",
116122
strip_prefix = "grpc-swift-1.16.0/",
117-
build_file = "//third_party:com_github_grpc_grpc_swift/BUILD.overlay",
123+
build_file = Label(
124+
"//third_party:com_github_grpc_grpc_swift/BUILD.overlay",
125+
),
118126
)
119127

120128
_maybe(
@@ -123,7 +131,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
123131
urls = ["https://github.com/apple/swift-docc-symbolkit/archive/refs/tags/swift-5.10-RELEASE.tar.gz"],
124132
sha256 = "de1d4b6940468ddb53b89df7aa1a81323b9712775b0e33e8254fa0f6f7469a97",
125133
strip_prefix = "swift-docc-symbolkit-swift-5.10-RELEASE",
126-
build_file = "//third_party:com_github_apple_swift_docc_symbolkit/BUILD.overlay",
134+
build_file = Label(
135+
"//third_party:com_github_apple_swift_docc_symbolkit/BUILD.overlay",
136+
),
127137
)
128138

129139
_maybe(
@@ -132,7 +142,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
132142
urls = ["https://github.com/apple/swift-nio/archive/2.42.0.tar.gz"], # pinned to grpc swift version
133143
sha256 = "e3304bc3fb53aea74a3e54bd005ede11f6dc357117d9b1db642d03aea87194a0",
134144
strip_prefix = "swift-nio-2.42.0/",
135-
build_file = "//third_party:com_github_apple_swift_nio/BUILD.overlay",
145+
build_file = Label(
146+
"//third_party:com_github_apple_swift_nio/BUILD.overlay",
147+
),
136148
)
137149

138150
_maybe(
@@ -141,7 +153,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
141153
urls = ["https://github.com/apple/swift-nio-http2/archive/1.26.0.tar.gz"], # pinned to grpc-swift version
142154
sha256 = "f0edfc9d6a7be1d587e5b403f2d04264bdfae59aac1d74f7d974a9022c6d2b25",
143155
strip_prefix = "swift-nio-http2-1.26.0/",
144-
build_file = "//third_party:com_github_apple_swift_nio_http2/BUILD.overlay",
156+
build_file = Label(
157+
"//third_party:com_github_apple_swift_nio_http2/BUILD.overlay",
158+
),
145159
)
146160

147161
_maybe(
@@ -150,7 +164,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
150164
urls = ["https://github.com/apple/swift-nio-transport-services/archive/1.15.0.tar.gz"], # pinned to grpc-swift version
151165
sha256 = "f3498dafa633751a52b9b7f741f7ac30c42bcbeb3b9edca6d447e0da8e693262",
152166
strip_prefix = "swift-nio-transport-services-1.15.0/",
153-
build_file = "//third_party:com_github_apple_swift_nio_transport_services/BUILD.overlay",
167+
build_file = Label(
168+
"//third_party:com_github_apple_swift_nio_transport_services/BUILD.overlay",
169+
),
154170
)
155171

156172
_maybe(
@@ -159,7 +175,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
159175
urls = ["https://github.com/apple/swift-nio-extras/archive/1.4.0.tar.gz"], # pinned to grpc-swift version
160176
sha256 = "4684b52951d9d9937bb3e8ccd6b5daedd777021ef2519ea2f18c4c922843b52b",
161177
strip_prefix = "swift-nio-extras-1.4.0/",
162-
build_file = "//third_party:com_github_apple_swift_nio_extras/BUILD.overlay",
178+
build_file = Label(
179+
"//third_party:com_github_apple_swift_nio_extras/BUILD.overlay",
180+
),
163181
)
164182

165183
_maybe(
@@ -168,7 +186,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
168186
urls = ["https://github.com/apple/swift-log/archive/1.4.4.tar.gz"], # pinned to grpc-swift version
169187
sha256 = "48fe66426c784c0c20031f15dc17faf9f4c9037c192bfac2f643f65cb2321ba0",
170188
strip_prefix = "swift-log-1.4.4/",
171-
build_file = "//third_party:com_github_apple_swift_log/BUILD.overlay",
189+
build_file = Label(
190+
"//third_party:com_github_apple_swift_log/BUILD.overlay",
191+
),
172192
)
173193

174194
_maybe(
@@ -177,7 +197,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
177197
urls = ["https://github.com/apple/swift-nio-ssl/archive/2.23.0.tar.gz"], # pinned to grpc swift version
178198
sha256 = "4787c63f61dd04d99e498adc3d1a628193387e41efddf8de19b8db04544d016d",
179199
strip_prefix = "swift-nio-ssl-2.23.0/",
180-
build_file = "//third_party:com_github_apple_swift_nio_ssl/BUILD.overlay",
200+
build_file = Label(
201+
"//third_party:com_github_apple_swift_nio_ssl/BUILD.overlay",
202+
),
181203
)
182204

183205
_maybe(
@@ -186,7 +208,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
186208
urls = ["https://github.com/apple/swift-collections/archive/1.0.4.tar.gz"], # pinned to swift-nio @ grpc-swift version
187209
sha256 = "d9e4c8a91c60fb9c92a04caccbb10ded42f4cb47b26a212bc6b39cc390a4b096",
188210
strip_prefix = "swift-collections-1.0.4/",
189-
build_file = "//third_party:com_github_apple_swift_collections/BUILD.overlay",
211+
build_file = Label(
212+
"//third_party:com_github_apple_swift_collections/BUILD.overlay",
213+
),
190214
)
191215

192216
_maybe(
@@ -195,7 +219,9 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
195219
urls = ["https://github.com/apple/swift-atomics/archive/1.1.0.tar.gz"], # pinned to swift-nio @ grpc-swift version
196220
sha256 = "1bee7f469f7e8dc49f11cfa4da07182fbc79eab000ec2c17bfdce468c5d276fb",
197221
strip_prefix = "swift-atomics-1.1.0/",
198-
build_file = "//third_party:com_github_apple_swift_atomics/BUILD.overlay",
222+
build_file = Label(
223+
"//third_party:com_github_apple_swift_atomics/BUILD.overlay",
224+
),
199225
)
200226

201227
# It relies on `index-import` to import indexes into Bazel's remote
@@ -204,7 +230,7 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
204230
_maybe(
205231
http_archive,
206232
name = "build_bazel_rules_swift_index_import",
207-
build_file = "//third_party:build_bazel_rules_swift_index_import/BUILD.overlay",
233+
build_file = Label("//third_party:build_bazel_rules_swift_index_import/BUILD.overlay"),
208234
canonical_id = "index-import-5.8",
209235
urls = ["https://github.com/MobileNativeFoundation/index-import/releases/download/5.8.0.1/index-import.tar.gz"],
210236
sha256 = "28c1ffa39d99e74ed70623899b207b41f79214c498c603915aef55972a851a15",

0 commit comments

Comments
 (0)