...

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

Documentation: cmd/go/testdata/script

     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
    12go build net
    13! stale net
    14
    15symlink new -> $GOROOT
    16env OLDGOROOT=$GOROOT
    17env GOROOT=$WORK${/}gopath${/}src${/}new
    18go env GOROOT
    19stdout $WORK[\\/]gopath[\\/]src[\\/]new
    20cd new
    21! stale net
    22
    23# Add a control case to check that std is
    24# stale with an empty cache
    25env GOCACHE=$WORK${/}gopath${/}cache
    26stale net

View as plain text