blob: 704290ca5ed1fdcc1a2016bf84e03155aa972741 [file] [log] [blame]
Colin Cross7bb052a2015-02-03 12:59:37 -08001#!/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
6rfork e
7
Patrice Arruda7f4776e2020-06-25 11:55:41 -07008if(! 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
Dan Willemsenb8ef64a2023-04-04 01:48:15 -040013GOENV=off
Dan Willemsen1cbb82a2022-08-08 23:13:50 -070014eval `{../bin/go tool dist env}
Colin Cross7bb052a2015-02-03 12:59:37 -080015
Colin Cross846c3162021-05-14 11:11:40 -070016GOPATH=/nonexist-gopath
Patrice Arruda7f4776e2020-06-25 11:55:41 -070017exec ../bin/go tool dist test -rebuild $*