ssh-vault: pass -vendor-only to dep ensure

This commit is contained in:
ilovezfs 2018-06-07 05:06:25 -07:00
parent 966abf9d48
commit b534e457c4

View file

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