From 0a4cf54d89683dff77317524c754bb668fd16f63 Mon Sep 17 00:00:00 2001 From: Adam Goska Date: Tue, 18 Jan 2022 14:03:07 -0500 Subject: /docs: update instructions for source checkout Updated documentation regarding source code checkout from the legacy gopath mode 'go get' to 'git clone'. Fixes #2828 --- docs/contributing.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/contributing.md') diff --git a/docs/contributing.md b/docs/contributing.md index 0ab1c07fa..fa60d0b16 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -85,14 +85,13 @@ in the same commit. [github.com/google/syzkaller](https://github.com/google/syzkaller) and press `Fork` button in the top-right corner of the page. This will create `https://github.com/YOUR_GITHUB_USERNAME/syzkaller` repository. -- Checkout main syzkaller repository if you have not already. To work with `go` command the checkout must be under -`$GOPATH`. The simplest way to do it is to run `go get -u -d github.com/google/syzkaller/prog`, this will checkout -the repository in `$GOPATH/src/github.com/google/syzkaller`. +- Checkout main syzkaller repository if you have not already. The simplest way to do it is to run `git clone https://github.com/google/syzkaller`, this will checkout +the repository in the current working directory. - Remember to `export PATH=$GOPATH/bin:$PATH` if you have not already. - Then add your repository as an additional origin: ```shell - cd $GOPATH/src/github.com/google/syzkaller + cd syzkaller git remote add my-origin https://github.com/YOUR_GITHUB_USERNAME/syzkaller.git git fetch my-origin git checkout -b my-branch my-origin/master -- cgit mrf-deployment