-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
misc/wasm: wasm_exec.js
missing after toolchain update
#69989
Comments
My bad, this is answered by #68024 - thanks @gabyhelp for helping me find it 🙂 It also explains my confusing with regards to:
because in 1.24.0 it will be in (perhaps the wording here will help other Unix users find the issue too). |
go 1.22.5 -> in /misc go 1.24.0 -> in /lib See golang/go#68024 See golang/go#69989
Go version
go version go1.23.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I updated my Go toolchain version using the Go command's update functionality (I believe this happens automatically when using the
go
command when the Go version ingo.mod
doesn't match the current version) and then tried to copy thewasm_exec.js
file - following https://go.dev/wiki/WebAssembly - to be able to run WASM compiled Go code in the browser.What did you see happen?
An error the
wasm_exec.js
file was not found:if and only if I use a version of the
go
command from a toolchain update. I verified this error does not occur when Go was installed atgo version go1.23.0 linux/amd64
directly.What did you expect to see?
No error and the file is copied:
(I know the guide says
cp "$(go env GOROOT)/lib/wasm/wasm_exec.js" .
- withlib
instead ofmisc
- but, at least on Gogo version go1.22.5 linux/amd64
andgo version go1.23.0 linux/amd64
onlymisc
works.)The text was updated successfully, but these errors were encountered: