Skip to content

Commit

Permalink
Use 'git clone' instead of 'go get' for in the build or developer's w…
Browse files Browse the repository at this point in the history
…orkflow 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'.
  • Loading branch information
Laurent Chavey committed Nov 20, 2021
1 parent e9b0287 commit 0744520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ automatically set in all console sessions.
To get the source code, run

```
go get github.com/google/pprof
eval {'mkdir -p',cd}\ $GOPATH/src/github.com/google\;
git clone git@github.com:google/pprof.git
```

To run the tests, do
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ Prerequisites:
- Graphviz: http://www.graphviz.org/
Optional, used to generate graphic visualizations of profiles

To build and install it, use the `go get` tool.
To build and install it, use the `go clone`.

go get -u github.com/google/pprof
eval {'mkdir -p',cd}\ $GOPATH/src/github.com/google\;
git clone git@github.com:google/pprof.git
go install

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

0 comments on commit 0744520

Please sign in to comment.