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

fix snap build (go modules, go 1.12, etc.) #2385

Merged
merged 3 commits into from
Aug 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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