1# windows executables have the .exe extension and won't overwrite source files 2[GOOS:windows] skip 3 4mkdir out 5env GOTMPDIR=$PWD/out 6 7grep 'this should still exist' foo.go 8 9! go build 10stderr 'already exists and is not an object file' 11 12grep 'this should still exist' foo.go 13 14-- go.mod -- 15module foo.go 16 17-- foo.go -- 18package main // this should still exist 19 20func main() {}