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

     1  # Check to see that the distribution is not stale
     2  # even when it's been moved to a different directory.
     3  # Simulate that by creating a symlink to the tree.
     4  
     5  # We use net instead of std because stale std has
     6  # the behavior of checking that all std targets
     7  # are stale rather than any of them.
     8  
     9  [!symlink] skip
    10  [short] skip
    11  
    12  go build net
    13  ! stale net
    14  
    15  symlink new -> $GOROOT
    16  env OLDGOROOT=$GOROOT
    17  env GOROOT=$WORK${/}gopath${/}src${/}new
    18  go env GOROOT
    19  stdout $WORK[\\/]gopath[\\/]src[\\/]new
    20  cd new
    21  ! stale net
    22  
    23  # Add a control case to check that std is
    24  # stale with an empty cache
    25  env GOCACHE=$WORK${/}gopath${/}cache
    26  stale net
    27  

View as plain text