Clarify build vs. install

[ci skip]
pull/4769/merge
Philip O'Toole 2015-11-21 16:48:38 -08:00
parent b1daac7ef7
commit 52a94156e1
1 changed files with 3 additions and 5 deletions

View File

@ -120,21 +120,19 @@ Retaining the directory structure `$GOPATH/src/github.com/influxdb` is necessary
Build and Test 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: Make sure you have Go installed and the project structure as shown above. To then get the dependencies for the project, execute the following commands:
```bash ```bash
cd $GOPATH/src/github.com/influxdb cd $GOPATH/src/github.com/influxdb
go get -u -f -t ./...
go build ./...
``` ```
To then install the binaries, run the following command. They can be found in `$GOPATH/bin`. Please note that the InfluxDB binary is named `influxd`, not `influxdb`. To then bulid and install the binaries, run the following command. They can be found in `$GOPATH/bin`. Please note that the InfluxDB binary is named `influxd`, not `influxdb`.
```bash ```bash
go install ./... go install ./...
``` ```
To set the version and commit flags during the build pass the following to the build command: To set the version and commit flags during the build pass the following to the **install** command:
```bash ```bash
-ldflags="-X main.version $VERSION -X main.branch $BRANCH -X main.commit $COMMIT -X main.buildTime $TIME" -ldflags="-X main.version $VERSION -X main.branch $BRANCH -X main.commit $COMMIT -X main.buildTime $TIME"