github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/install_cleans_build.txt (about) 1 # 'go install' with no arguments should clean up after go build 2 cd mycmd 3 go build 4 exists mycmd$exe 5 go install 6 ! exists mycmd$exe 7 8 # 'go install mycmd' does not clean up, even in the mycmd directory 9 go build 10 exists mycmd$exe 11 go install mycmd 12 exists mycmd$exe 13 14 # 'go install mycmd' should not clean up in an unrelated current directory either 15 cd .. 16 cp mycmd/mycmd$exe mycmd$exe 17 go install mycmd 18 exists mycmd$exe 19 20 -- mycmd/main.go -- 21 package main 22 func main() {}