Skip to content

Commit 8322826

Browse files
authored
Merge pull request goadapp#127 from cwaltken-edrans/update-homebrew
Update homebrew recipe to be compliant for hombrew-core
2 parents 04e95ed + c0aa42b commit 8322826

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

HomebrewFormula/goad.rb

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
1+
require "language/go"
2+
13
class Goad < Formula
24
desc "AWS Lambda powered, highly distributed, load testing tool built in Go."
35
homepage "https://goad.io/"
4-
url "https://github.com/goadapp/goad.git", :tag => "v1.4.0"
6+
url "https://github.com/goadapp/goad.git", :tag => "v1.4.1"
57

68
depends_on "go" => :build
79

10+
go_resource "github.com/jteeuwen/go-bindata" do
11+
url "https://github.com/jteeuwen/go-bindata.git",
12+
:revision => "a0ff2567cfb70903282db057e799fd826784d41d"
13+
end
14+
815
def install
916
ENV["GOPATH"] = buildpath
10-
ENV["GOBIN"] = buildpath/"bin"
17+
dir = buildpath/"src/github.com/goadapp/goad"
18+
dir.install buildpath.children
1119
ENV.prepend_create_path "PATH", buildpath/"bin"
20+
Language::Go.stage_deps resources, buildpath/"src"
21+
22+
cd "src/github.com/jteeuwen/go-bindata/go-bindata" do
23+
system "go", "install"
24+
end
1225

13-
(buildpath/"src/github.com/goadapp/goad").install buildpath.children
14-
cd "src/github.com/goadapp/goad/" do
26+
cd dir do
1527
system "make", "build"
1628
bin.install "build/goad"
1729
end

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GOPATH := ${PWD}/vendor:${GOPATH}
1010
export GOPATH
1111

1212
# These will be provided to the target
13-
VERSION := 1.4.0
13+
VERSION := 1.4.1
1414
BUILD := `git rev-parse HEAD`
1515

1616
# Timestamp of last commit to allow for reproducable builds
@@ -44,7 +44,7 @@ lambda:
4444
@$(ZIP) data/lambda data/lambda
4545

4646
bindata: lambda
47-
@go get -u github.com/jteeuwen/go-bindata/...
47+
@go get github.com/jteeuwen/go-bindata/...
4848
@go-bindata -modtime $(TIMESTAMP) -nocompress -pkg infrastructure -o infrastructure/bindata.go data/lambda.zip
4949

5050
linux: bindata

0 commit comments

Comments
 (0)