github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/install_rebuild_removed.txt (about) 1 # go command should detect package staleness as source file set changes 2 go install mypkg 3 ! stale mypkg 4 5 # z.go was not compiled; removing it should NOT make mypkg stale 6 rm mypkg/z.go 7 ! stale mypkg 8 9 # y.go was compiled; removing it should make mypkg stale 10 rm mypkg/y.go 11 stale mypkg 12 13 # go command should detect executable staleness too 14 go install mycmd 15 ! stale mycmd 16 rm mycmd/z.go 17 ! stale mycmd 18 rm mycmd/y.go 19 stale mycmd 20 21 -- mypkg/x.go -- 22 package mypkg 23 24 -- mypkg/y.go -- 25 package mypkg 26 27 -- mypkg/z.go -- 28 // +build missingtag 29 30 package mypkg 31 32 -- mycmd/x.go -- 33 package main 34 func main() {} 35 36 -- mycmd/y.go -- 37 package main 38 39 -- mycmd/z.go -- 40 // +build missingtag 41 42 package main