diff --git a/Cargo.toml b/Cargo.toml index 74d6423..ca3f2dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ reqwest = { version = "0.13.1", features = ["blocking"] } tar = "0.4" [workspace.package] -version = "0.3.1" +version = "0.3.2" edition = "2024" [workspace.lints.clippy] diff --git a/main.go b/main.go index 03542f5..528379c 100644 --- a/main.go +++ b/main.go @@ -24,12 +24,7 @@ import ( // Although `componentize-go` is written in Rust, we can use this wrapper to // make it available using e.g. `go install` and/or `go tool`. func main() { - // This is hard-coded to point to the latest canary release, which is - // appropriate for the `main` branch, but should be changed to the tag - // name for each tagged release. - // - // TODO: Can we automate updating this for each release? - release := "canary" + release := "v0.3.2" directories := userdirs.ForApp( "componentize-go", diff --git a/src/utils.rs b/src/utils.rs index c6ebd76..2405e9f 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -420,7 +420,7 @@ pub fn pick_go(resolve: &Resolve, world: WorldId, go_path: Option<&Path>) -> Res bad_arch => panic!("ARCH not supported: {bad_arch}"), }; - let cache_dir = &cache_dir.join("componentize-go"); + let cache_dir = &cache_dir.join("componentize-go").join("v2"); let name = &format!("go-{os}-{arch}-bootstrap"); let dir = cache_dir.join(name); let bin = dir.join("bin").join("go"); @@ -433,7 +433,7 @@ pub fn pick_go(resolve: &Resolve, world: WorldId, go_path: Option<&Path>) -> Res if !bin.exists() { let url = format!( - "https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle/{name}.tbz" + "https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle-v2/{name}.tbz" ); eprintln!("Downloading patched Go from {url}."); diff --git a/src/wasi_snapshot_preview1.reactor.wasm b/src/wasi_snapshot_preview1.reactor.wasm old mode 100644 new mode 100755 index ee39669..51ea76b Binary files a/src/wasi_snapshot_preview1.reactor.wasm and b/src/wasi_snapshot_preview1.reactor.wasm differ