From: Jes Cok Date: Tue, 19 Aug 2025 15:47:29 +0000 (+0000) Subject: cmd/compile: tweak example command in README X-Git-Tag: go1.26rc1~1058 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5024d0d884;p=gostls13.git cmd/compile: tweak example command in README While running ./src/all.bash, I got the following error: all.bash must be run from $GOROOT/src Change-Id: Iad271654ff8647501a324c282f01baf39605e3df GitHub-Last-Rev: 2e289babf1bc81c1a44c9a72a29659d8bf9d827b GitHub-Pull-Request: golang/go#75050 Reviewed-on: https://go-review.googlesource.com/c/go/+/696296 Reviewed-by: t hepudds Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee --- diff --git a/src/cmd/compile/README.md b/src/cmd/compile/README.md index cffb4e7a80..79d2336154 100644 --- a/src/cmd/compile/README.md +++ b/src/cmd/compile/README.md @@ -281,11 +281,11 @@ dependencies, so is not suitable for distributed build systems.) ``` $ go install golang.org/x/tools/cmd/toolstash@latest $ git clone https://go.googlesource.com/go - $ cd go + $ export PATH=$PWD/go/bin:$PATH + $ cd go/src $ git checkout -b mybranch - $ ./src/all.bash # build and confirm good starting point - $ export PATH=$PWD/bin:$PATH - $ toolstash save # save current tools + $ ./all.bash # build and confirm good starting point + $ toolstash save # save current tools ``` After that, your edit/compile/test cycle can be similar to: ```