Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2385 from fluxcd/fix-snap-build
Browse files Browse the repository at this point in the history
fix snap build (go modules, go 1.12, etc.)
  • Loading branch information
Daniel Holbach authored Aug 21, 2019
2 parents b3288cc + f9c6418 commit 1354b6a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,18 @@ parts:
snapcraftctl set-version "$FLUX_TAG+$GIT_REV"
snapcraftctl set-grade devel
fi
plugin: go
go-importpath: github.com/weaveworks/flux
plugin: nil
override-build: |
export GOBIN=$SNAPCRAFT_PART_INSTALL/bin
go build -o $GOBIN/fluxctl ./cmd/fluxctl
build-environment:
- GO111MODULE: 'on'
- CGO_ENABLED: '0'
build-packages:
- gcc
- git
build-snaps:
- go/1.12/stable
stage:
- -bin/fluxd
- -bin/helm-operator
Expand Down

0 comments on commit 1354b6a

Please sign in to comment.