Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
svetasmirnova authored Nov 27, 2023
1 parent a3c226b commit 4e98383
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ function ldflags_pmm_dump {
}

function ldflags_pt {
CP=')'
VERSION=$(git log --no-walk --tags --pretty="%H %d" --decorate=short | head -n1 | awk -F'[, $(CP)]' '{ print $5; }')
BUILD=$(date "+%FT%T%z")
GOVERSION=$(go version | cut --delimiter=" " -f3)
COMMIT=$(git rev-list -1 HEAD)
echo "-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.GoVersion=${GOVERSION} -X main.Commit=${COMMIT} -s -w"
CP=')'
VERSION=$(git log --no-walk --tags --pretty="%H %d" --decorate=short | head -n1 | awk -F'[, $(CP)]' '{ print $5; }')
BUILD=$(date "+%FT%T%z")
GOVERSION=$(go version | cut --delimiter=" " -f3)
COMMIT=$(git rev-list -1 HEAD)
echo "-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.GoVersion=${GOVERSION} -X main.Commit=${COMMIT} -s -w"
}

for os_ in ${OS[@]}; do
Expand Down

0 comments on commit 4e98383

Please sign in to comment.