From e6ee86930b2eb0c3c95586b330c106e4c775f27d Mon Sep 17 00:00:00 2001 From: David Bliss Date: Fri, 16 Feb 2018 14:34:04 +0000 Subject: [PATCH] Support building snap packages --- .gitignore | 6 ++++++ snap/snapcraft.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/.gitignore b/.gitignore index 0888f25..06ed739 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,9 @@ vendor/*/ tmp/ cover/ yq + +# snapcraft +parts/ +prime/ +.snapcraft/ +yq*.snap diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..0ef77c3 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,24 @@ +name: yq +version: git +summary: A lightweight and portable command-line YAML processor +description: | + The aim of the project is to be the jq or sed of yaml files. + +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict + +apps: + yq: + command: yq + plugs: [home] + +parts: + yq: + plugin: go + source: . + go-importpath: github.com/mikefarah/yq + #go-packages: [github.com/mikefarah/yq] + after: [go] + go: + source-tag: go1.9.4 +