vegeta 7.0.3

Closes #28193.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Tomás Senart 2018-05-23 13:29:28 +02:00 committed by ilovezfs
parent 829299816e
commit 5de2508656

View file

@ -1,8 +1,9 @@
class Vegeta < Formula
desc "HTTP load testing tool and library"
homepage "https://github.com/tsenart/vegeta"
url "https://github.com/tsenart/vegeta/archive/v7.0.0.tar.gz"
sha256 "b9e2ae43b832849c46e9aa0e1cddf5938e79b9addad01481b3cbfb7aa09a03cb"
url "https://github.com/tsenart/vegeta.git",
:tag => "v7.0.3",
:revision => "f5e8a53b900b1509b8719aa94c30d4cf087a77e9"
bottle do
cellar :any_skip_relocation
@ -16,13 +17,10 @@ class Vegeta < Formula
def install
ENV["GOPATH"] = buildpath
ENV["CGO_ENABLED"] = "0"
(buildpath/"src/github.com/tsenart/vegeta").install buildpath.children
cd "src/github.com/tsenart/vegeta" do
system "dep", "ensure"
system "go", "build", "-ldflags", "-X main.Version=#{version}",
"-o", bin/"vegeta"
system "make", "vegeta"
bin.install "vegeta"
prefix.install_metafiles
end
end