Skip to content

Commit 5ac002b

Browse files
author
Laurent Chavey
committed
Use 'git clone' instead of 'go get' for in the build or developer's workflow documentation.
As golang released their new version 1.17.1 go get is not supported anymore. golang/go#31529 (comment) suggests using 'git clone' rather than 'go get'.
1 parent e9b0287 commit 5ac002b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ automatically set in all console sessions.
4545
To get the source code, run
4646

4747
```
48-
go get github.com/google/pprof
48+
eval {'mkdir -p',cd}\ $GOPATH/src/github.com/google\;
49+
git clone [email protected]:google/pprof.git
4950
```
5051

5152
To run the tests, do

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ Prerequisites:
3434
- Graphviz: http://www.graphviz.org/
3535
Optional, used to generate graphic visualizations of profiles
3636

37-
To build and install it, use the `go get` tool.
37+
To build and install it, use `git clone`.
3838

39-
go get -u github.com/google/pprof
39+
eval {'mkdir -p',cd}\ $GOPATH/src/github.com/google\;
40+
git clone [email protected]:google/pprof.git
41+
go install
4042

4143
Remember to set GOPATH to the directory where you want pprof to be
4244
installed. The binary will be in `$GOPATH/bin` and the sources under

0 commit comments

Comments
 (0)