immortal: pass -vendor-only to dep ensure

This commit is contained in:
ilovezfs 2018-06-07 05:06:25 -07:00
parent 02bd775ecd
commit a9e96bb795

View file

@ -19,7 +19,7 @@ class Immortal < Formula
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/immortal/immortal").install buildpath.children
cd "src/github.com/immortal/immortal" do
system "dep", "ensure"
system "dep", "ensure", "-vendor-only"
ldflags = "-s -w -X main.version=#{version}"
system "go", "build", "-ldflags", ldflags, "-o", "#{bin}/immortal", "cmd/immortal/main.go"
system "go", "build", "-ldflags", ldflags, "-o", "#{bin}/immortalctl", "cmd/immortalctl/main.go"