From 036249fa7ba92e1ae548bd7bdf883bfc3d19da4c Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Mon, 21 Jul 2025 13:14:45 +0200 Subject: [PATCH 1/2] remove wasm-tools warning for Golang --- component-model/src/language-support/go.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/component-model/src/language-support/go.md b/component-model/src/language-support/go.md index 24d36db3..b57877fc 100644 --- a/component-model/src/language-support/go.md +++ b/component-model/src/language-support/go.md @@ -13,12 +13,6 @@ Follow the [TinyGo installation instructions](https://tinygo.org/getting-started Additionally, install the `wasm-tools` CLI tool from the [wasm-tools repository](https://github.com/bytecodealliance/wasm-tools/releases). -> [!WARNING] -> Due to some upstream issues, only `wasm-tools` versions 1.225.0 or earlier can be used with `wit-bindgen-go` -> -> If using the Rust toolchain to install `wasm-tools`, it can be installed like so: -> `cargo install --locked wasm-tools@1.225.0 --force` - To verify the installation, run the following commands: ``` From 520b24ff95b8c307f6c68bd0c9600fc92473b3b7 Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Mon, 21 Jul 2025 22:07:51 +0200 Subject: [PATCH 2/2] update wasm-tools warning for Golang --- component-model/src/language-support/go.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/component-model/src/language-support/go.md b/component-model/src/language-support/go.md index b57877fc..e3b6cc6e 100644 --- a/component-model/src/language-support/go.md +++ b/component-model/src/language-support/go.md @@ -13,6 +13,16 @@ Follow the [TinyGo installation instructions](https://tinygo.org/getting-started Additionally, install the `wasm-tools` CLI tool from the [wasm-tools repository](https://github.com/bytecodealliance/wasm-tools/releases). +> [!WARNING] +> `wit-bindgen-go` comes with its own `wasm-tools` vendored version, but tinygo still requires you to install it. +> Even if unlikely, this could lead to version mismatch when using older versions of `wasm-tools`. +> Please make sure to keep your local `wasm-tools` udpated, should you encounter any issues. +> +> If using the Rust toolchain to install `wasm-tools`, it can be installed like so: +> `cargo install --locked wasm-tools@1.235.0 --force` +> or via cargo binstall: +> `cargo binstall wasm-tools@1.235.0` + To verify the installation, run the following commands: ```