Skip to content

Commit

Permalink
snapcraft build support for go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Law Zava committed Nov 8, 2019
1 parent 29d3307 commit 1a56cfb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ grade: stable
icon: ./icon.svg
parts:
scrape:
plugin: go
go-importpath: github.com/lawzava/scrape
plugin: nil
build-snaps: [go]
source: .
source-type: git
build-packages:
- gcc
override-build: |
export GOBIN=$SNAPCRAFT_PART_INSTALL/bin
export GO111MODULE=on
export CGO_ENABLED=0
go build -o ../../../prime/bin/scrape
apps:
scrape:
command: bin/scrape
Expand Down

0 comments on commit 1a56cfb

Please sign in to comment.