Skip to content

Commit b4e9eb0

Browse files
committed
fix: make wit_library world attribute optional for interface libraries
WASI interface packages (wasi:io, wasi:cli, etc.) export interfaces but don't define worlds. The world attribute is only needed for component entry points, not for interface library definitions. This fixes CI build failures where WASI wit_library targets were missing the mandatory world attribute.
1 parent c04f8b0 commit b4e9eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wit/wit_library.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ wit_library = rule(
204204
doc = "WIT package name (defaults to target name)",
205205
),
206206
"world": attr.string(
207-
mandatory = True,
208-
doc = "World name defined in the WIT file (required for predictable binding generation)",
207+
mandatory = False,
208+
doc = "World name defined in the WIT file (optional, typically only needed for component entry points)",
209209
),
210210
"interfaces": attr.string_list(
211211
doc = "List of interface names defined in this library",

0 commit comments

Comments
 (0)