rfork e
-eval `{go env}
+if(! test -f ../bin/go){
+ echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2]
+ exit wrongdir
+}
-GOPATH = () # we disallow local import for non-local packages, if $GOROOT happens
- # to be under $GOPATH, then some tests below will fail
+GOENV=off
+eval `{../bin/go tool dist env}
-exec go tool dist test $*
+GOPATH=/nonexist-gopath
+exec ../bin/go tool dist test -rebuild $*