mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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: 2e289babf1
GitHub-Pull-Request: golang/go#75050
Reviewed-on: https://go-review.googlesource.com/c/go/+/696296
Reviewed-by: t hepudds <thepudds1460@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
This commit is contained in:
parent
b80ffb64d8
commit
5024d0d884
1 changed files with 4 additions and 4 deletions
|
|
@ -281,10 +281,10 @@ dependencies, so is not suitable for distributed build systems.)
|
||||||
```
|
```
|
||||||
$ go install golang.org/x/tools/cmd/toolstash@latest
|
$ go install golang.org/x/tools/cmd/toolstash@latest
|
||||||
$ git clone https://go.googlesource.com/go
|
$ git clone https://go.googlesource.com/go
|
||||||
$ cd go
|
$ export PATH=$PWD/go/bin:$PATH
|
||||||
|
$ cd go/src
|
||||||
$ git checkout -b mybranch
|
$ git checkout -b mybranch
|
||||||
$ ./src/all.bash # build and confirm good starting point
|
$ ./all.bash # build and confirm good starting point
|
||||||
$ export PATH=$PWD/bin:$PATH
|
|
||||||
$ toolstash save # save current tools
|
$ toolstash save # save current tools
|
||||||
```
|
```
|
||||||
After that, your edit/compile/test cycle can be similar to:
|
After that, your edit/compile/test cycle can be similar to:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue