Use Go 1.5 linker flag syntax

[ci skip]
pull/4061/head
Philip O'Toole 2015-09-09 12:26:32 -07:00
parent ab95274030
commit e1de0c6842
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ go install ./...
To set the version and commit flags during the build pass the following to the build command:
```bash
-ldflags="-X main.version $VERSION -X main.branch=$BRANCH -X main.commit=$COMMIT"
-ldflags="-X main.version=$VERSION -X main.branch=$BRANCH -X main.commit=$COMMIT"
```
where `$VERSION` is the version, `$BRANCH` is the branch, and `$COMMIT` is the git commit hash.