github.com/geraldss/go/src@v0.0.0-20210511222824-ac7d0ebfc235/run.rc (about) 1 #!/bin/rc -e 2 # Copyright 2012 The Go Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 rfork e 7 8 if(! test -f ../bin/go){ 9 echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2] 10 exit wrongdir 11 } 12 13 eval `{../bin/go env} 14 15 GOPATH = () # we disallow local import for non-local packages, if $GOROOT happens 16 # to be under $GOPATH, then some tests below will fail 17 GOBIN = () # Issue 14340 18 GOFLAGS = () 19 GO111MODULE = () 20 21 exec ../bin/go tool dist test -rebuild $*