also in make.rc

Change-Id: I8138b093e3df375a390fd88f0bcb00b603c2cd9b
This commit is contained in:
Mateusz Poliwczak 2024-05-26 20:20:44 +02:00
parent 5055d9aef2
commit 9c7134fa44

View file

@ -60,9 +60,11 @@ if(! ~ $#GOROOT_BOOTSTRAP 1){
}
for(p in $path){
if(! test -x $GOROOT_BOOTSTRAP/bin/go){
GOROOT_BOOTSTRAP = ()
if(go_exe = `{path=$p whatis go}){
goroot_bootstrap = $GOROOT_BOOTSTRAP
GOROOT_BOOTSTRAP = ()
goroot = `{bootstrapenv $go_exe env GOROOT}
GOROOT_BOOTSTRAP = $goroot_bootstrap
if(! ~ $goroot $GOROOT){
if(~ $goroot_bootstrap_set 'true'){
echo 'WARNING: '$GOROOT_BOOTSTRAP'/bin/go does not exist, found '$go_exe' from env' >[1=2]