Skip to content

Commit 8777a86

Browse files
committed
fix: standardize world name in multi-file packaging example
Update world name from 'multi-file-service' to 'service' for consistency between the WIT definition and BUILD.bazel configuration. This ensures the world attribute in wit_library matches the actual world name defined in the WIT file.
1 parent 3e34a15 commit 8777a86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/multi_file_packaging/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ wit_library(
2626
name = "web_service_interfaces",
2727
package_name = "example:[email protected]",
2828
srcs = ["wit/web_service.wit"],
29-
world = "multi-file-service",
29+
world = "service",
3030
)
3131

3232
# Generate keys for signing examples
@@ -353,7 +353,7 @@ genrule(
353353
cp $(location :production_config) service/
354354
cp $(location :response_template) service/
355355
cp $(location :api_schema) service/
356-
cp $(location :service_documentation) service/
356+
cp $(locations :service_documentation) service/
357357
tar -cf $@ service/
358358
""",
359359
)

examples/multi_file_packaging/wit/web_service.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ interface web-service {
5252
}
5353

5454
/// World for multi-file packaging examples
55-
world multi-file-service {
55+
world service {
5656
export web-service;
5757
}

0 commit comments

Comments
 (0)