Support building snap packages

This commit is contained in:
David Bliss 2018-02-16 14:34:04 +00:00 committed by Mike Farah
parent 0ea3c71df7
commit e6ee86930b
2 changed files with 30 additions and 0 deletions

6
.gitignore vendored
View File

@ -30,3 +30,9 @@ vendor/*/
tmp/ tmp/
cover/ cover/
yq yq
# snapcraft
parts/
prime/
.snapcraft/
yq*.snap

24
snap/snapcraft.yaml Normal file
View File

@ -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