Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #80 from fastly/fgsch/fix-goreleaser
Browse files Browse the repository at this point in the history
Correct goreleaser install
  • Loading branch information
fgsch committed Feb 20, 2019
2 parents 949f46a + 7b9ebe5 commit fe14ab2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ brew:
depends_on "go" => :build
end
install: |
def install
if build.head?
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/fastly/waflyctl").install buildpath.children
cd "src/github.com/fastly/waflyctl" do
system "dep", "ensure", "-vendor-only"
system "go", "build", "-o", buildpath/"waflyctl"
end
if build.head?
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/fastly/waflyctl").install buildpath.children
cd "src/github.com/fastly/waflyctl" do
system "dep", "ensure", "-vendor-only"
system "go", "build", "-o", buildpath/"waflyctl"
end
bin.install "waflyctl"
end
bin.install "waflyctl"
test: |
system "#{bin}/waflyctl"

0 comments on commit fe14ab2

Please sign in to comment.