You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/07/29 06:31:20 UTC
[cloudstack-cloudmonkey] branch master updated: snap: snapcraft
update
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/master by this push:
new 2d9fd04 snap: snapcraft update
2d9fd04 is described below
commit 2d9fd04d3276149331c774cbd1c731a48a9008a9
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Wed Jul 29 11:39:26 2020 +0530
snap: snapcraft update
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
snap/snapcraft.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index d46de63..e068632 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -28,9 +28,14 @@ parts:
- gcc
- make
- file
+ - git
override-build: |
set -eu
go version
+ go mod vendor
+ git checkout -- .
+ git status
+ git rev-parse HEAD
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
file cmk
chmod +x cmk