diff --git a/Formula/g/go-task.rb b/Formula/g/go-task.rb index bc11f65bb791..6673d89eb387 100644 --- a/Formula/g/go-task.rb +++ b/Formula/g/go-task.rb @@ -21,11 +21,15 @@ class GoTask < Formula conflicts_with "task", because: "both install `task` binaries" def install + ENV["CGO_ENABLED"] = "0" + ldflags = %W[ -s -w -X github.com/go-task/task/v3/internal/version.version=#{version} ] + system "go", "build", *std_go_args(ldflags: ldflags, output: bin/"task"), "./cmd/task" + bash_completion.install "completion/bash/task.bash" => "task" zsh_completion.install "completion/zsh/_task" => "_task" fish_completion.install "completion/fish/task.fish"