Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / t / terramate.rb
blobd7e21024e29799a80157e782d813d54c40fad282
1 class Terramate < Formula
2   desc "Managing Terraform stacks with change detections and code generations"
3   homepage "https://terramate.io/docs/cli/"
4   url "https://github.com/terramate-io/terramate/archive/refs/tags/v0.11.9.tar.gz"
5   sha256 "ccc5aa5e09839cdb200beac11debe3e72d868fdc50222917959f028984e5dfa0"
6   license "MPL-2.0"
7   head "https://github.com/terramate-io/terramate.git", branch: "main"
9   bottle do
10     sha256 cellar: :any_skip_relocation, arm64_sequoia: "9bf900074788f17bc498666f390e4286c044cf43c671aa07092c60b3c934482f"
11     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "9bf900074788f17bc498666f390e4286c044cf43c671aa07092c60b3c934482f"
12     sha256 cellar: :any_skip_relocation, arm64_ventura: "9bf900074788f17bc498666f390e4286c044cf43c671aa07092c60b3c934482f"
13     sha256 cellar: :any_skip_relocation, sonoma:        "87ec9ff5c95e37b40e20581144a3efbda4f8dfe32a042a1d8b66f1ee7b7cf2bc"
14     sha256 cellar: :any_skip_relocation, ventura:       "87ec9ff5c95e37b40e20581144a3efbda4f8dfe32a042a1d8b66f1ee7b7cf2bc"
15     sha256 cellar: :any_skip_relocation, x86_64_linux:  "aed865dcb24588a3b5ed45a6ea17027a2faab131853dbdc39890d555f0347b2f"
16   end
18   depends_on "go" => :build
20   def install
21     system "go", "build", *std_go_args(output: bin/"terramate", ldflags: "-s -w"), "./cmd/terramate"
22     system "go", "build", *std_go_args(output: bin/"terramate-ls", ldflags: "-s -w"), "./cmd/terramate-ls"
23   end
25   test do
26     assert_match version.to_s, shell_output("#{bin}/terramate version")
27     assert_match version.to_s, shell_output("#{bin}/terramate-ls -version")
28   end
29 end