forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A few small cleanups to CONTRIBUTING.md (influxdata#855)
- Loading branch information
Showing
1 changed file
with
7 additions
and
9 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 |
---|---|---|
|
@@ -80,19 +80,19 @@ Getting the source | |
------ | ||
Setup the project structure and fetch the repo like so: | ||
|
||
mkdir $HOME/gocodez | ||
export GOPATH=$HOME/gocodez | ||
mkdir $HOME/go | ||
export GOPATH=$HOME/go | ||
go get github.com/influxdata/kapacitor | ||
|
||
You can add the line `export GOPATH=$HOME/gocodez` to your bash/zsh file to be set for every shell instead of having to manually run it everytime. | ||
You can add the line `export GOPATH=$HOME/go` to your bash/zsh file to be set for every shell instead of having to manually run it everytime. | ||
|
||
Cloning a fork | ||
------------- | ||
If you wish to work with fork of Kapacitor, your own fork for example, you must still follow the directory structure above. | ||
But instead of cloning the main repo, instead clone your fork. Follow the steps below to work with a fork: | ||
|
||
export GOPATH=$HOME/gocodez | ||
mkdir -p $GOPATH/src/github.com/influxdb | ||
export GOPATH=$HOME/go | ||
mkdir -p $GOPATH/src/github.com/influxdata | ||
cd $GOPATH/src/github.com/influxdata | ||
git clone [email protected]:<username>/kapacitor | ||
|
||
|
@@ -124,8 +124,7 @@ Build and Test | |
Make sure you have Go installed and the project structure as shown above. To then build the project, execute the following commands: | ||
|
||
```bash | ||
cd $GOPATH/src/github.com/influxdb/kapacitor | ||
go get ./... | ||
cd $GOPATH/src/github.com/influxdata/kapacitor | ||
go build ./cmd/kapacitor | ||
go build ./cmd/kapacitord | ||
``` | ||
|
@@ -134,8 +133,7 @@ Kapacitor builds two binares is named `kapacitor`, and `kapacitord`. | |
To run the tests, execute the following command: | ||
|
||
```bash | ||
go get -t ./... | ||
go test ./... | ||
go test $(go list ./... | grep -v /vendor/) | ||
``` | ||
|
||
Dependencies | ||
|