Skip to content

Commit

Permalink
Adds commit hash to a program version (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpominchuk authored Dec 18, 2023
1 parent b0c014a commit 2d2ce05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ fi

go build \
-ldflags "-X 'github.com/vpominchuk/$APP_NAME/src/app.ExecutableName=$APP_NAME' \
-X 'github.com/vpominchuk/$APP_NAME/src/app.GitCommit=`git rev-list --count HEAD`' \
-X 'github.com/vpominchuk/$APP_NAME/src/app.GitCommit=`git rev-list --short HEAD`' \
-X 'github.com/vpominchuk/$APP_NAME/src/app.GitTag=`git describe --tags $(git rev-list --tags --max-count=1)`'" \
-o $EXECUTABLE_NAME

0 comments on commit 2d2ce05

Please sign in to comment.