cmd/go: error while trying to overwrite a built binary #25774
Labels
arch-wasm
WebAssembly issues
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version devel +33f1768 Thu Jun 7 01:19:13 2018 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Build any wasm binary with js/wasm env vars. Then build the same binary again.
GOOS=js GOARCH=wasm gotip build -o binary file.go
Update code.
Then again -
GOOS=js GOARCH=wasm gotip build -o binary file.go
What did you expect to see?
Binary builds fine. Overwrites existing binary. Just like it happens for normal builds for other platforms.
What did you see instead?
This is annoying during the dev cycle, because now I have to delete the binary every time I need to re-build.
I think we just need to add the wasm magic header in the
objectMagic
slice in cmd/go/internal/work/exec.go .Can send a CL if this sounds good.
The text was updated successfully, but these errors were encountered: