fluxctl 1.13.0
Closes #40951. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
e2d6599d30
commit
31a0c6fd3a
1 changed files with 8 additions and 9 deletions
|
@ -2,8 +2,8 @@ class Fluxctl < Formula
|
|||
desc "Command-line tool to access Weave Flux, the Kubernetes GitOps operator"
|
||||
homepage "https://github.com/weaveworks/flux"
|
||||
url "https://github.com/weaveworks/flux.git",
|
||||
:tag => "1.12.3",
|
||||
:revision => "5668c02251eb148b1cbc643946ce13e73b8dcb50"
|
||||
:tag => "1.13.0",
|
||||
:revision => "4a1959d7b30068ebe54b29b907d5a4e4fbc920c5"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -12,18 +12,17 @@ class Fluxctl < Formula
|
|||
sha256 "f203463fd088bc6b52788659cdab61970a70cab37869eb394365a7d192aab5f1" => :sierra
|
||||
end
|
||||
|
||||
depends_on "dep" => :build
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
dir = buildpath/"src/github.com/weaveworks/flux"
|
||||
dir.install buildpath.children - [buildpath/".brew_home"]
|
||||
ENV["GO111MODULE"] = "on"
|
||||
|
||||
cd dir do
|
||||
system "dep", "ensure", "-vendor-only"
|
||||
system "make", "release-bins"
|
||||
bin.install "build/fluxctl_darwin_amd64" => "fluxctl"
|
||||
dir = buildpath/"src/github.com/weaveworks/flux"
|
||||
dir.install buildpath.children
|
||||
|
||||
cd dir/"cmd/fluxctl" do
|
||||
system "go", "build", "-ldflags", "-X main.version=#{version}", "-o", bin/"fluxctl"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue