Skip to content

Commit c04f8b0

Browse files
committed
fix: correct BUILD file syntax errors for buildifier
Fix syntax errors in BUILD files: - docs-site/BUILD.bazel: add missing comma after glob() - checksums/BUILD.bazel: add missing comma after glob() - examples/oci_publishing/BUILD.bazel: add missing commas after enhanced_oci_annotations() calls All files now pass buildifier formatting checks.
1 parent cac4a8b commit c04f8b0

File tree

27 files changed

+155
-125
lines changed

27 files changed

+155
-125
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ filegroup(
2626
"bazel-*/**",
2727
".git/**",
2828
],
29-
)
29+
),
3030
)
3131

3232
# Version file for stamping

MODULE.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,17 @@ http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_
198198

199199
http_file(
200200
name = "file_ops_component_external",
201-
url = "https://github.com/pulseengine/bazel-file-ops-component/releases/download/v0.1.0-rc.3/file_ops_component.wasm",
202-
sha256 = "8a9b1aa8a2c9d3dc36f1724ccbf24a48c473808d9017b059c84afddc55743f1e",
203201
downloaded_file_path = "file_ops_component.wasm",
202+
sha256 = "8a9b1aa8a2c9d3dc36f1724ccbf24a48c473808d9017b059c84afddc55743f1e",
203+
url = "https://github.com/pulseengine/bazel-file-ops-component/releases/download/v0.1.0-rc.3/file_ops_component.wasm",
204204
)
205205

206206
# wasmsign2 CLI WASM binary for component signing
207207
http_file(
208208
name = "wasmsign2_cli_wasm",
209-
url = "https://github.com/pulseengine/wasmsign2/releases/download/v0.2.7-rc.2/wasmsign2-cli.wasm",
210-
sha256 = "0a2ba6a55621d83980daa7f38e3770ba6b9342736971a0cebf613df08377cd34",
211209
downloaded_file_path = "wasmsign2.wasm",
210+
sha256 = "0a2ba6a55621d83980daa7f38e3770ba6b9342736971a0cebf613df08377cd34",
211+
url = "https://github.com/pulseengine/wasmsign2/releases/download/v0.2.7-rc.2/wasmsign2-cli.wasm",
212212
)
213213

214214
# WASM Tools Component toolchain for universal wasm-tools operations

MODULE.bazel.lock

Lines changed: 50 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checksums/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bzl_library(
1515
# Export all tool checksum files for consumption by toolchains
1616
filegroup(
1717
name = "all_checksums",
18-
srcs = glob(["tools/*.json"])
18+
srcs = glob(["tools/*.json"]),
1919
visibility = ["//visibility:public"],
2020
)
2121

docs-site/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ filegroup(
2727
"*.md",
2828
],
2929
allow_empty = True,
30-
)
30+
),
3131
visibility = ["//visibility:public"],
3232
)
3333

docs/BUILD.bazel

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ wit_docs_collection(
2929

3030
stardoc(
3131
name = "example_rule_stardoc_raw",
32-
input = "example_rule.bzl",
3332
out = "example_rule_stardoc_raw.md",
33+
input = "example_rule.bzl",
3434
)
3535

3636
genrule(
@@ -53,8 +53,8 @@ genrule(
5353

5454
stardoc(
5555
name = "cpp_component_stardoc_raw",
56-
input = "//cpp:defs.bzl",
5756
out = "cpp_component_raw.md",
57+
input = "//cpp:defs.bzl",
5858
deps = [
5959
"//cpp:defs",
6060
"//providers",
@@ -85,11 +85,11 @@ genrule(
8585

8686
stardoc(
8787
name = "rust_defs_stardoc_raw",
88-
input = "//rust:defs.bzl",
8988
out = "rust_defs_raw.md",
89+
input = "//rust:defs.bzl",
9090
deps = [
91-
"//rust:defs",
9291
"//providers",
92+
"//rust:defs",
9393
"//rust:transitions",
9494
"//wasm:wasm_component_wizer",
9595
"//wit:symmetric_wit_bindgen",
@@ -114,8 +114,8 @@ genrule(
114114

115115
stardoc(
116116
name = "rust_wasm_component_stardoc_raw",
117-
input = "//rust:rust_wasm_component.bzl",
118117
out = "rust_wasm_component_stardoc_raw.md",
118+
input = "//rust:rust_wasm_component.bzl",
119119
deps = [
120120
"//rust:rust_wasm_component",
121121
"@rules_rust//rust:bzl_lib",
@@ -142,8 +142,8 @@ genrule(
142142

143143
stardoc(
144144
name = "go_defs_stardoc_raw",
145-
input = "//go:defs.bzl",
146145
out = "go_defs_raw.md",
146+
input = "//go:defs.bzl",
147147
deps = [
148148
"//go:defs",
149149
"//providers",
@@ -174,8 +174,8 @@ genrule(
174174

175175
stardoc(
176176
name = "js_defs_stardoc_raw",
177-
input = "//js:defs.bzl",
178177
out = "js_defs_raw.md",
178+
input = "//js:defs.bzl",
179179
deps = [
180180
"//js:defs",
181181
"//providers",
@@ -204,13 +204,13 @@ genrule(
204204

205205
stardoc(
206206
name = "wit_defs_stardoc_raw",
207-
input = "//wit:defs.bzl",
208207
out = "wit_defs_raw.md",
208+
input = "//wit:defs.bzl",
209209
deps = [
210210
"//wit:defs",
211-
"//wit:wit_library",
212-
"//wit:wit_bindgen",
213211
"//wit:symmetric_wit_bindgen",
212+
"//wit:wit_bindgen",
213+
"//wit:wit_library",
214214
"//wit:wit_markdown",
215215
"@bazel_skylib//lib:paths",
216216
],
@@ -236,12 +236,12 @@ genrule(
236236

237237
stardoc(
238238
name = "wasm_defs_stardoc_raw",
239-
input = "//wasm:defs.bzl",
240239
out = "wasm_defs_raw.md",
240+
input = "//wasm:defs.bzl",
241241
deps = [
242-
"//wasm:defs",
243242
"//providers",
244243
"//tools/bazel_helpers:wasm_tools_actions",
244+
"//wasm:defs",
245245
],
246246
)
247247

@@ -265,11 +265,11 @@ genrule(
265265

266266
stardoc(
267267
name = "wkg_defs_stardoc_raw",
268-
input = "//wkg:defs.bzl",
269268
out = "wkg_defs_raw.md",
269+
input = "//wkg:defs.bzl",
270270
deps = [
271-
"//wkg:defs",
272271
"//providers",
272+
"//wkg:defs",
273273
],
274274
)
275275

@@ -293,11 +293,11 @@ genrule(
293293

294294
stardoc(
295295
name = "wac_defs_stardoc_raw",
296-
input = "//wac:defs.bzl",
297296
out = "wac_defs_raw.md",
297+
input = "//wac:defs.bzl",
298298
deps = [
299-
"//wac:defs",
300299
"//providers",
300+
"//wac:defs",
301301
],
302302
)
303303

@@ -321,11 +321,11 @@ genrule(
321321

322322
stardoc(
323323
name = "wrpc_defs_stardoc_raw",
324-
input = "//wrpc:defs.bzl",
325324
out = "wrpc_defs_raw.md",
325+
input = "//wrpc:defs.bzl",
326326
deps = [
327-
"//wrpc:defs",
328327
"//providers",
328+
"//wrpc:defs",
329329
],
330330
)
331331

examples/cpp_component/multi_component_system/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ wit_library(
1919
srcs = ["wit/analytics_service.wit"],
2020
world = "analytics-service",
2121
deps = [
22-
"@wasi_io_v020//:streams",
2322
"@wasi_cli_v020//:cli",
2423
"@wasi_clocks_v020//:clocks",
2524
"@wasi_filesystem_v020//:filesystem",
25+
"@wasi_io_v020//:streams",
2626
"@wasi_random_v020//:random",
2727
],
2828
)

examples/go_component/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ wit_library(
1818
srcs = ["wit/calculator.wit"],
1919
world = "calculator-world",
2020
deps = [
21-
"@wasi_io_v020//:streams",
2221
"@wasi_cli_v020//:cli",
2322
"@wasi_clocks_v020//:clocks",
2423
"@wasi_filesystem_v020//:filesystem",
24+
"@wasi_io_v020//:streams",
2525
"@wasi_random_v020//:random",
2626
],
2727
)
@@ -33,10 +33,10 @@ wit_library(
3333
srcs = ["wit/simple-calculator.wit"],
3434
world = "calculator-world",
3535
deps = [
36-
"@wasi_io_v020//:streams",
3736
"@wasi_cli_v020//:cli",
3837
"@wasi_clocks_v020//:clocks",
3938
"@wasi_filesystem_v020//:filesystem",
39+
"@wasi_io_v020//:streams",
4040
"@wasi_random_v020//:random",
4141
],
4242
)
@@ -47,10 +47,10 @@ wit_library(
4747
srcs = ["wit/http-service.wit"],
4848
world = "http-service-world",
4949
deps = [
50-
"@wasi_io_v020//:streams",
5150
"@wasi_cli_v020//:cli",
5251
"@wasi_clocks_v020//:clocks",
5352
"@wasi_filesystem_v020//:filesystem",
53+
"@wasi_io_v020//:streams",
5454
"@wasi_random_v020//:random",
5555
],
5656
)

examples/multi_profile/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ wit_library(
1818
name = "ai_interfaces",
1919
package_name = "ai:interfaces",
2020
srcs = ["wit/ai.wit"],
21-
deps = [":sensor_interfaces"],
2221
world = "ai-model",
22+
deps = [":sensor_interfaces"],
2323
)
2424

2525
# Build components with multiple profiles

examples/oci_publishing/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ wasm_component_oci_image(
429429
language = "rust",
430430
security_level = "enhanced",
431431
wasi_version = "preview2",
432-
)
432+
),
433433
authors = ["[email protected]"],
434434
component = ":enhanced_annotations_example",
435435
description = "WebAssembly component with enhanced OCI annotations",
@@ -462,7 +462,7 @@ wasm_component_multi_arch_package(
462462
language = "rust",
463463
security_level = "basic",
464464
wasi_version = "multi",
465-
)
465+
),
466466
components = {
467467
"wasm32-wasi": ":wasm32_wasi_component",
468468
"wasm32-unknown": ":wasm32_unknown_component",
@@ -503,7 +503,7 @@ wasm_component_multi_arch_package(
503503
language = "rust",
504504
security_level = "enterprise",
505505
wasi_version = "multi",
506-
)
506+
),
507507
components = {
508508
"wasm32-wasi": ":wasm32_wasi_component",
509509
"wasm32-wasi-preview1": ":hello_oci_component",

0 commit comments

Comments
 (0)