gor 1.0.0
Closes #40013. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
1c19ca763d
commit
e74602c2d4
1 changed files with 4 additions and 2 deletions
|
@ -2,8 +2,8 @@ class Gor < Formula
|
||||||
desc "Real-time HTTP traffic replay tool written in Go"
|
desc "Real-time HTTP traffic replay tool written in Go"
|
||||||
homepage "https://gortool.com"
|
homepage "https://gortool.com"
|
||||||
url "https://github.com/buger/goreplay.git",
|
url "https://github.com/buger/goreplay.git",
|
||||||
:tag => "v0.16.1",
|
:tag => "v1.0.0",
|
||||||
:revision => "652e589e2b71d5dfa4d2a70431d21b108a5e471e"
|
:revision => "a8cfaa75812ac176b253ffe1d11eb9bbc7be7522"
|
||||||
head "https://github.com/buger/goreplay.git"
|
head "https://github.com/buger/goreplay.git"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -19,6 +19,8 @@ class Gor < Formula
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV["GOPATH"] = buildpath
|
ENV["GOPATH"] = buildpath
|
||||||
|
ENV["GO111MODULE"] = "on"
|
||||||
|
|
||||||
(buildpath/"src/github.com/buger/goreplay").install buildpath.children
|
(buildpath/"src/github.com/buger/goreplay").install buildpath.children
|
||||||
cd "src/github.com/buger/goreplay" do
|
cd "src/github.com/buger/goreplay" do
|
||||||
system "go", "build", "-o", bin/"gor", "-ldflags", "-X main.VERSION=#{version}"
|
system "go", "build", "-o", bin/"gor", "-ldflags", "-X main.VERSION=#{version}"
|
||||||
|
|
Loading…
Reference in a new issue