What version of Go are you using (go version)?
$ go version
go version go1.19.3 linux/amd64
Does this issue reproduce with the latest release?
Unknown.
What did you do?
Rough steps:
- Interrupt a build with ^C
- Make some changes that cause our build system to attempt to rebuild the binary (like
git rebase)
- Run the build
What did you expect to see?
No error.
What did you see instead?
go build go.fuchsia.dev/fuchsia/tools/fidl/fidlmerge: build output "../../../../fidlmerge" already exists and is not an object file
Upon inspection, the file starts with 4KB of 0x00s, which definitely isn't an object file. But the block of the file at 0x1000 does match the contents of the file that's written by the compiler if I delete the "bad" file and re-run the build.