| 1 |
[short] skip |
| 2 |
|
| 3 |
# Ensure that the target of 'go build -o' can be an existing, empty file so that |
| 4 |
# its name can be reserved using os.CreateTemp or the 'mktemp` command. |
| 5 |
|
| 6 |
go build -o empty-file$GOEXE main.go |
| 7 |
|
| 8 |
-- main.go -- |
| 9 |
package main |
| 10 |
func main() {} |
| 11 |
-- empty-file$GOEXE -- |