-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update instructions to use "git clone" instead of "go get". (#673)
Fixes #648.
- Loading branch information
Showing
2 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,20 +38,21 @@ specific platforms, making internal pprof APIs public, etc. | |
|
||
# Development | ||
|
||
Make sure `GOPATH` is set in your current shell. The common way is to have | ||
something like `export GOPATH=$HOME/gocode` in your `.bashrc` file so that it's | ||
automatically set in all console sessions. | ||
The commands below assume `/tmp/pprof` as the location for the source code. | ||
You can change it to a directory of your choice. | ||
|
||
To get the source code, run | ||
|
||
``` | ||
go get github.com/google/pprof | ||
cd /tmp | ||
git clone [email protected]:google/pprof.git | ||
cd pprof | ||
``` | ||
|
||
To run the tests, do | ||
|
||
``` | ||
cd $GOPATH/src/github.com/google/pprof | ||
cd /tmp/pprof | ||
go test -v ./... | ||
``` | ||
|
||
|
@@ -62,7 +63,7 @@ get` your fork directly, you'll be getting errors like `use of internal package | |
not allowed` when running tests. To set up the remote do something like | ||
|
||
``` | ||
cd $GOPATH/src/github.com/google/pprof | ||
cd /tmp/pprof | ||
git remote add aalexand [email protected]:aalexand/pprof.git | ||
git fetch aalexand | ||
git checkout -b my-new-feature | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters