Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / g / glab.rb
blobe4656b5ae33b2be8dbe3bbcc5d70e575399f5a05
1 class Glab < Formula
2   desc "Open-source GitLab command-line tool"
3   homepage "https://gitlab.com/gitlab-org/cli"
4   url "https://gitlab.com/gitlab-org/cli/-/archive/v1.52.0/cli-v1.52.0.tar.gz"
5   sha256 "585495e53d3994172fb927218627b7470678bc766320cb52f4b4204238677dde"
6   license "MIT"
7   head "https://gitlab.com/gitlab-org/cli.git", branch: "trunk"
9   bottle do
10     sha256 cellar: :any_skip_relocation, arm64_sequoia: "88c55668322cc683805c72db19532ab9de51ba0d754705b09894103603185c8f"
11     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "88c55668322cc683805c72db19532ab9de51ba0d754705b09894103603185c8f"
12     sha256 cellar: :any_skip_relocation, arm64_ventura: "88c55668322cc683805c72db19532ab9de51ba0d754705b09894103603185c8f"
13     sha256 cellar: :any_skip_relocation, sonoma:        "ba3b78a3e9cc6663095b1f10144f50d3fd6de5c250fa46f4f267014692d314c7"
14     sha256 cellar: :any_skip_relocation, ventura:       "ba3b78a3e9cc6663095b1f10144f50d3fd6de5c250fa46f4f267014692d314c7"
15     sha256 cellar: :any_skip_relocation, x86_64_linux:  "c4b9b83335efe0871e0afbbec376137ee83a26bbd46536dd4554419ffa7d2cdc"
16   end
18   depends_on "go" => :build
20   def install
21     ENV["CGO_ENABLED"] = "1" if OS.mac?
23     system "make", "GLAB_VERSION=v#{version}"
24     bin.install "bin/glab"
25     generate_completions_from_executable(bin/"glab", "completion", "--shell")
26   end
28   test do
29     system "git", "clone", "https://gitlab.com/cli-automated-testing/homebrew-testing.git"
30     cd "homebrew-testing" do
31       assert_match "Matt Nohr", shell_output("#{bin}/glab repo contributors")
32       assert_match "This is a test issue", shell_output("#{bin}/glab issue list --all")
33     end
34   end
35 end