From 3a7c62d758d053cb3cf42693b9d060a3856cc261 Mon Sep 17 00:00:00 2001 From: Jeremy Fleitz Date: Tue, 8 Sep 2026 15:20:10 -0400 Subject: [PATCH 1/2] update to go 1.27.1 Signed-off-by: Jeremy Fleitz --- README.md | 2 +- examples/sdk/component/go.mod | 2 +- examples/sdk/pkg/go.mod | 2 +- examples/wasip3/README.md | 2 +- go.mod | 9 +++++---- src/utils.rs | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6694221..6de7da7 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The output is a component which may be run using e.g. [`wasmtime`](https://githu ### Using Go -Requires Go 1.25.5+ +Requires Go 1.27.1+ Add the following to your `go.mod` file and run `go mod tidy`: diff --git a/examples/sdk/component/go.mod b/examples/sdk/component/go.mod index 6952701..39dfcf1 100644 --- a/examples/sdk/component/go.mod +++ b/examples/sdk/component/go.mod @@ -1,6 +1,6 @@ module example -go 1.25.5 +go 1.27.1 replace pkg => ../pkg diff --git a/examples/sdk/pkg/go.mod b/examples/sdk/pkg/go.mod index 4c80283..96cee55 100644 --- a/examples/sdk/pkg/go.mod +++ b/examples/sdk/pkg/go.mod @@ -1,5 +1,5 @@ module pkg -go 1.25.5 +go 1.27.1 require go.bytecodealliance.org/pkg v0.2.3 diff --git a/examples/wasip3/README.md b/examples/wasip3/README.md index 505b899..3277bbb 100644 --- a/examples/wasip3/README.md +++ b/examples/wasip3/README.md @@ -8,7 +8,7 @@ ABI](https://github.com/WebAssembly/component-model/blob/main/design/mvp/Concurr As of this writing, not everything has been upstreamed and released, so this relies on specific Git revisions of certain tools, plus [a patched version of -Go](https://github.com/dicej/go/releases/tag/go1.25.5-wasi-on-idle). In the +Go](https://github.com/dicej/go/releases/tag/go1.27.1-wasi-on-idle). In the meantime, if componentize-go detects that a targeted WIT world uses async, it will automatically install the patched Go version in then OS's cache directory and use it to build components. Once everything is merged, we'll be able to diff --git a/go.mod b/go.mod index 2492461..ee83d90 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,10 @@ module github.com/bytecodealliance/componentize-go -go 1.25 +go 1.27.1 -require github.com/apparentlymart/go-userdirs v0.0.0-20200915174352-b0c018a67c13 - -require github.com/gofrs/flock v0.13.0 +require ( + github.com/apparentlymart/go-userdirs v0.0.0-20200915174352-b0c018a67c13 + github.com/gofrs/flock v0.13.0 +) require golang.org/x/sys v0.37.0 // indirect diff --git a/src/utils.rs b/src/utils.rs index 9388139..beb1e4a 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -478,7 +478,7 @@ pub fn install_go( if !bin.exists() { let url = url.unwrap_or(format!( - "https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle-v2/{name}.tbz" + "https://github.com/dicej/go/releases/download/go1.27.1-wasi-on-idle-v2/{name}.tbz" )); // Provide a generous timeout window for users with slow internet From bc7c32729383d49f5470e7936cb219a91dd36ca6 Mon Sep 17 00:00:00 2001 From: Jeremy Fleitz Date: Tue, 8 Sep 2026 16:54:01 -0400 Subject: [PATCH 2/2] update patched go1.27 binary url Signed-off-by: Jeremy Fleitz --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index beb1e4a..883bc69 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -478,7 +478,7 @@ pub fn install_go( if !bin.exists() { let url = url.unwrap_or(format!( - "https://github.com/dicej/go/releases/download/go1.27.1-wasi-on-idle-v2/{name}.tbz" + "https://github.com/dicej/go/releases/download/go1.27.1-wasi-on-idle/{name}.tbz" )); // Provide a generous timeout window for users with slow internet