virustotal-cli: use `go` to build

Closes #111542.

Signed-off-by: Branch Vincent <19800529+branchvincent@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Michael Cho 2022-09-23 11:34:49 -07:00 committed by BrewTestBot
parent d30da301f8
commit 1e8cd95ea6
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 2 additions and 5 deletions

View File

@ -14,13 +14,10 @@ class VirustotalCli < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "3c89d82d495056117ab909ce0365d5229236694c4bffdcc52784be1905bdbe10"
end
# Bump to 1.18 on the next release, if possible.
depends_on "go@1.17" => :build
depends_on "go" => :build
def install
system "go", "build", "-ldflags",
"-X cmd.Version=#{version}",
"-o", bin/"vt", "./vt/main.go"
system "go", "build", *std_go_args(output: bin/"vt", ldflags: "-X cmd.Version=#{version}"), "./vt/main.go"
generate_completions_from_executable(bin/"vt", "completion", base_name: "vt", shells: [:bash, :zsh])
end