Skip to content

Commit

Permalink
short build version info
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfung committed Jul 23, 2024
1 parent 0bffd71 commit 7d30d75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
all:
git checkout config/reader.go
sed -i -- "s/BUILD_VERSION/`git rev-parse HEAD`/g" config/reader.go || exit
sed -i -- "s/BUILD_VERSION/`git rev-parse --short HEAD`/g" config/reader.go || exit
CGO_ENABLED=0 go build -o mixin
git checkout config/reader.go

0 comments on commit 7d30d75

Please sign in to comment.