tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
14.72k stars 858 forks source link

wasm: -target=wasi is now trying to use GOOS=wasip1, which is not existent in Go 1.20 #4313

Open deadprogram opened 5 days ago

deadprogram commented 5 days ago

The latest release of TinyGo removed the -target=wasi in favor of the newer GOOS/GOARCH values, however those do not exist in Go 1.20 so it causes an issue for those users.

See https://github.com/tetratelabs/wazero/pull/2210#pullrequestreview-2126375711

aykevl commented 5 days ago

I was aware of this, but didn't think it would break too many users. Apparently I was wrong.

I should point out that Go 1.20 is not supported by the Go team anymore (so it doesn't get security updates anymore).

aykevl commented 5 days ago

See: https://github.com/tinygo-org/tinygo/pull/4175