Skip to content

Commit 2d9fd04

Browse files
committed
snap: snapcraft update
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent abc3192 commit 2d9fd04

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

snap/snapcraft.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ parts:
2828
- gcc
2929
- make
3030
- file
31+
- git
3132
override-build: |
3233
set -eu
3334
go version
35+
go mod vendor
36+
git checkout -- .
37+
git status
38+
git rev-parse HEAD
3439
go build -mod=vendor -ldflags="-s -w -X main.GitSHA=$(git rev-parse --short HEAD) -X main.BuildDate=$(date +%FT%T%z)" -o cmk cmk.go
3540
file cmk
3641
chmod +x cmk

0 commit comments

Comments
 (0)