parent
ab95274030
commit
e1de0c6842
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue