From 704476a7478892c279e9d79a01ebccb365a975e1 Mon Sep 17 00:00:00 2001 From: hunterlong Date: Thu, 23 Jul 2020 12:00:02 -0700 Subject: [PATCH] snapcraft --- snapcraft.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index dbc0e6d6..fa1449bb 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -29,18 +29,14 @@ apps: parts: statping: - plugin: git - source: https://github.com/statping/statping.git - source-type: git - override-pull: | - snapcraftctl set-version "$(cat version.txt)" - override-build: | - export GOPATH=$PWD - cd src/github.com/statping/statping - GOOS=linux go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=$(cat version.txt)" -o statping --tags "netgo linux" ./cmd + plugin: go + source: . + go-importpath: statping build-snaps: - go build-packages: - git + - gcc + - make - sed