Commit 8b87fa0
committed
fix: resolve TinyGo toolchain platform resolution issue
Add platform transitions to Go component rules for proper WebAssembly targeting:
• Import wasm_transition from rust:transitions.bzl in go/defs.bzl
• Apply cfg = wasm_transition to go_wasm_component rule
• Apply cfg = wasm_transition to go_wasm_component_wizer rule
• Apply cfg = wasm_transition to go_wit_bindgen rule
This resolves the toolchain resolution failure where Go components were
trying to build for host platform instead of WebAssembly target platform.
The TinyGo toolchain now properly resolves and builds Go components:
- TinyGo v0.38.0 with WASI Preview 2 support
- WebAssembly component generation via wasm-tools
- Full integration with existing platform constraint system
Tested and verified working with go_component examples.1 parent b191454 commit 8b87fa0
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| 356 | + | |
355 | 357 | | |
356 | 358 | | |
357 | 359 | | |
| |||
431 | 433 | | |
432 | 434 | | |
433 | 435 | | |
| 436 | + | |
434 | 437 | | |
435 | 438 | | |
436 | 439 | | |
| |||
602 | 605 | | |
603 | 606 | | |
604 | 607 | | |
| 608 | + | |
605 | 609 | | |
606 | 610 | | |
607 | 611 | | |
| |||
0 commit comments