Skip to content

Commit 04f9878

Browse files
committed
fix: update WASI version references from 0.2.6 to available 0.2.3
Resolves CI failure where Go component was importing wasi:io/[email protected] but only 0.2.3 is configured in the WASI dependencies. Updated: - Go component calculator.wit: wasi:io/[email protected] → @0.2.3 - Documentation examples: consistent use of available 0.2.3 versions - Example WIT files: align with actual configured dependencies
1 parent 9f844fa commit 04f9878

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

docs-site/src/content/docs/guides/external-wit-dependencies.mdx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ load("@rules_wasm_component//wkg:defs.bzl", "wkg_wit_deps")
6767
wkg_wit_deps(
6868
name = "registry_interfaces",
6969
packages = [
70-
71-
70+
71+
7272
"bytecodealliance:[email protected]",
7373
],
7474
registry = "registry.wasm.org", # Default WKG registry
@@ -230,7 +230,7 @@ wit_library(
230230
package example:[email protected];
231231
232232
world my-world {
233-
import wasi:io/[email protected].6; // Import external interface
233+
import wasi:io/[email protected].3; // Import external interface
234234
export my-api;
235235
}
236236
```
@@ -369,10 +369,10 @@ load("@rules_wasm_component//wkg:defs.bzl", "wkg_component", "wkg_wit_deps")
369369
wkg_wit_deps(
370370
name = "wasi_interfaces",
371371
packages = [
372-
373-
374-
375-
372+
373+
374+
375+
376376
],
377377
)
378378

@@ -390,8 +390,8 @@ wkg_component(
390390
package myorg:[email protected];
391391
392392
// Import from WKG registry (these are resolved automatically)
393-
import wasi:[email protected].1;
394-
import wasi:[email protected].6;
393+
import wasi:[email protected].3;
394+
import wasi:[email protected].3;
395395
396396
interface web-handler {
397397
handle-request: func(
@@ -400,8 +400,8 @@ interface web-handler {
400400
}
401401
402402
world web-service {
403-
import wasi:[email protected].1;
404-
import wasi:[email protected].6;
403+
import wasi:[email protected].3;
404+
import wasi:[email protected].3;
405405
export web-handler;
406406
}
407407
```
@@ -556,9 +556,9 @@ def production_wit_dependencies():
556556
wkg_wit_deps(
557557
name = "production_wasi",
558558
packages = [
559-
"wasi:[email protected].6", # Stable release
560-
"wasi:[email protected].1", # Stable release
561-
"wasi:[email protected].1", # Stable release
559+
"wasi:[email protected].3", # Stable release
560+
"wasi:[email protected].3", # Stable release
561+
"wasi:[email protected].3", # Stable release
562562
],
563563
registry = "registry.wasm.org",
564564
)
@@ -744,7 +744,7 @@ Import external interfaces in your WIT definitions:
744744
package example:[email protected];
745745
746746
// Import external interfaces
747-
import wasi:io/[email protected].6;
747+
import wasi:io/[email protected].3;
748748
import wasm:[email protected];
749749
750750
import company:[email protected];
@@ -760,7 +760,7 @@ interface my-service {
760760
}
761761
762762
world my-service-world {
763-
import wasi:io/[email protected].6;
763+
import wasi:io/[email protected].3;
764764
import wasm:[email protected];
765765
import db:[email protected];
766766
import company:[email protected];

docs-site/src/content/docs/guides/toolchain-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,15 @@ use_repo(wasi_wit_ext, "wasi_io") # Add more as needed
628628

629629
| Package | Repository | Usage |
630630
|---------|------------|-------|
631-
| `@wasi_io//:streams` | `wasi:[email protected].6` | I/O streams, error handling |
631+
| `@wasi_io//:streams` | `wasi:[email protected].3` | I/O streams, error handling |
632632

633633
### Using in WIT Files
634634

635635
```wit title="component.wit"
636636
package example:[email protected];
637637
638638
world my-world {
639-
import wasi:io/[email protected].6; // Use external interface
639+
import wasi:io/[email protected].3; // Use external interface
640640
export my-api;
641641
}
642642
```

examples/go_component/wit/calculator.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ interface calculator {
3737

3838
world calculator-world {
3939
/// Import WASI interfaces required by TinyGo stdlib
40-
import wasi:io/streams@0.2.6;
40+
import wasi:io/streams@0.2.3;
4141

4242
export calculator;
4343
}

examples/using_external_wit_example.wit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package example:my-component@1.0.0;
44

55
// Import external WIT interfaces
6-
import wasi:io/[email protected].6; // From @wasi_io
6+
import wasi:io/[email protected].3; // From @wasi_io
77
import wasi:filesystem/[email protected]; // From @wasi_filesystem
88
import myorg:api/[email protected]; // From @my_external_wit
99

@@ -20,7 +20,7 @@ interface my-api {
2020

2121
world my-component-world {
2222
// Import the interfaces your component needs
23-
import wasi:io/streams@0.2.6;
23+
import wasi:io/streams@0.2.3;
2424
import wasi:filesystem/types@0.2.1;
2525
import myorg:api/http-client@1.2.3;
2626

0 commit comments

Comments
 (0)