Text file src/cmd/go/testdata/script/install_rebuild_removed.txt

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

View as plain text