2012-05-01 23:32:46 -06:00
|
|
|
#!/bin/rc -e
|
|
|
|
# Copyright 2012 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2013-02-26 10:25:46 -07:00
|
|
|
rfork e
|
|
|
|
|
2020-03-17 08:22:39 -06:00
|
|
|
if(! test -f ../bin/go){
|
|
|
|
echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2]
|
|
|
|
exit wrongdir
|
|
|
|
}
|
|
|
|
|
|
|
|
eval `{../bin/go env}
|
2013-02-26 10:25:46 -07:00
|
|
|
|
2014-01-27 22:17:38 -07:00
|
|
|
GOPATH = () # we disallow local import for non-local packages, if $GOROOT happens
|
2013-02-26 10:25:46 -07:00
|
|
|
# to be under $GOPATH, then some tests below will fail
|
2016-05-19 11:43:04 -06:00
|
|
|
GOBIN = () # Issue 14340
|
2018-07-28 23:10:02 -06:00
|
|
|
GOFLAGS = ()
|
2018-11-16 10:47:33 -07:00
|
|
|
GO111MODULE = ()
|
2012-05-01 23:32:46 -06:00
|
|
|
|
2020-03-17 08:22:39 -06:00
|
|
|
exec ../bin/go tool dist test -rebuild $*
|