blob: 39367ae3809e3656db6e4e1d0e4648d7c58e80ea [file] [log] [blame]
env GO111MODULE=on
# Set up fresh GOCACHE.
env GOCACHE=$WORK/gocache
mkdir $GOCACHE
cd $WORK
go build -o a.out
# Varying -trimpath should cause a rebuild.
go build -x -o a.out -trimpath
stderr '(compile|gccgo)( |\.exe)'
stderr 'link( |\.exe)'
-- $WORK/hello.go --
package main
func main() { println("hello") }
-- $WORK/go.mod --
module m