Skip to content

Commit

Permalink
Merge pull request #199834 from Homebrew/f2-build
Browse files Browse the repository at this point in the history
f2: update go build and add completions support
  • Loading branch information
BrewTestBot authored Dec 3, 2024
2 parents 4fae1c8 + 033f84e commit a8dcefc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Formula/f/f2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@ class F2 < Formula
head "https://github.com/ayoisaiah/f2.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "102beebfbd41758b97daf1e7046d8f5447e3851f507a07b8fe113c81e96e80f6"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "102beebfbd41758b97daf1e7046d8f5447e3851f507a07b8fe113c81e96e80f6"
sha256 cellar: :any_skip_relocation, arm64_ventura: "102beebfbd41758b97daf1e7046d8f5447e3851f507a07b8fe113c81e96e80f6"
sha256 cellar: :any_skip_relocation, sonoma: "c6a7dd847b9498a136b9680531cd4d99e1faaf320f30a2c51d8b8f31e1998d6f"
sha256 cellar: :any_skip_relocation, ventura: "c6a7dd847b9498a136b9680531cd4d99e1faaf320f30a2c51d8b8f31e1998d6f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8c197664eb13a389ea69c122ea8dbe4aaeb426c7db9724400631f4aca9a1dd6a"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "8302833ac2fb9359a9219c8157f0f2b89cfc0a1c77878d333def7a43386aa33b"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8302833ac2fb9359a9219c8157f0f2b89cfc0a1c77878d333def7a43386aa33b"
sha256 cellar: :any_skip_relocation, arm64_ventura: "8302833ac2fb9359a9219c8157f0f2b89cfc0a1c77878d333def7a43386aa33b"
sha256 cellar: :any_skip_relocation, sonoma: "8bd506a72e01572496aec534f019ba39752b8f8c9974cdae26c0aad3c2f9b247"
sha256 cellar: :any_skip_relocation, ventura: "8bd506a72e01572496aec534f019ba39752b8f8c9974cdae26c0aad3c2f9b247"
sha256 cellar: :any_skip_relocation, x86_64_linux: "42b70125dde40f56f721d1f02904018d5ce9bfaf048a5c0cd4d22465a2a25851"
end

depends_on "go" => :build

def install
system "go", "build", *std_go_args, "./cmd..."
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/f2"

bash_completion.install "scripts/completions/f2.bash" => "f2"
fish_completion.install "scripts/completions/f2.fish"
zsh_completion.install "scripts/completions/f2.zsh" => "_f2"
end

test do
Expand Down

0 comments on commit a8dcefc

Please sign in to comment.