From 9c7134fa44874b0a9d03807aa583b1088cc13922 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Sun, 26 May 2024 20:20:44 +0200 Subject: [PATCH] also in make.rc Change-Id: I8138b093e3df375a390fd88f0bcb00b603c2cd9b --- src/make.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/make.rc b/src/make.rc index 27456f759d..54250011dc 100755 --- a/src/make.rc +++ b/src/make.rc @@ -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]