...
1env GO111MODULE=off
2
3# go command should detect package staleness as source file set changes
4go install mypkg
5! stale mypkg
6
7# z.go was not compiled; removing it should NOT make mypkg stale
8rm mypkg/z.go
9! stale mypkg
10
11# y.go was compiled; removing it should make mypkg stale
12rm mypkg/y.go
13stale mypkg
14
15# go command should detect executable staleness too
16go install mycmd
17! stale mycmd
18rm mycmd/z.go
19! stale mycmd
20rm mycmd/y.go
21stale mycmd
22
23-- mypkg/x.go --
24package mypkg
25
26-- mypkg/y.go --
27package mypkg
28
29-- mypkg/z.go --
30// +build missingtag
31
32package mypkg
33
34-- mycmd/x.go --
35package main
36func main() {}
37
38-- mycmd/y.go --
39package main
40
41-- mycmd/z.go --
42// +build missingtag
43
44package main
View as plain text