Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 61130d5

Browse files
authored
Merge pull request #211 from nkubala/contributing
Add setup/build instructions to CONTRIBUTING.md
2 parents 0705429 + f0a3e7b commit 61130d5

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

CONTRIBUTING.md

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,39 @@
33
We'd love to accept your patches and contributions to this project. There are
44
just a few small guidelines you need to follow.
55

6+
## Setup
7+
8+
If you haven't written Go code on your machine before, first follow the official
9+
Golang instructions for setting up your environment: https://golang.org/doc/code.html
10+
11+
Once you have your environment set up, create a fork of the container-diff repository
12+
with your personal GitHub account. Then, clone the fork into your `$GOPATH`:
13+
14+
```bash
15+
git clone [email protected]:<your_account>/container-diff.git
16+
$GOPATH/src/github.com/GoogleCloudPlatform &&
17+
cd $GOPATH/src/github.com/GoogleCloudPlatform/container-diff &&
18+
git remote add upstream [email protected]:GoogleCloudPlatform/container-diff.git
19+
```
20+
21+
The last command here sets the official repository as an upstream repository for
22+
your fork, so you can keep your fork in sync with `MASTER`:
23+
24+
```bash
25+
(container-diff) git pull upstream master && git push origin master
26+
```
27+
28+
## Building
29+
30+
From the project root, run `make clean && make`.
31+
32+
## Code reviews
33+
34+
All submissions, including submissions by project members, require review. We
35+
use GitHub pull requests for this purpose. Consult
36+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
37+
information on using pull requests.
38+
639
## Contributor License Agreement
740

841
Contributions to this project must be accompanied by a Contributor License
@@ -15,13 +48,6 @@ You generally only need to submit a CLA once, so if you've already submitted one
1548
(even if it was for a different project), you probably don't need to do it
1649
again.
1750

18-
## Code reviews
19-
20-
All submissions, including submissions by project members, require review. We
21-
use GitHub pull requests for this purpose. Consult
22-
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
23-
information on using pull requests.
24-
2551
## Tests
2652

2753
Before sending a PR, please make sure the included tests pass.

0 commit comments

Comments
 (0)