From faf2bb4ab77b7e57676f51e2c2895c72985a224b Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 8 Oct 2025 00:57:24 -0400 Subject: [PATCH 1/2] granted 0.38.0 (new formula) Signed-off-by: Rui Chen --- Formula/g/granted.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/g/granted.rb diff --git a/Formula/g/granted.rb b/Formula/g/granted.rb new file mode 100644 index 0000000000000..990addc347637 --- /dev/null +++ b/Formula/g/granted.rb @@ -0,0 +1,24 @@ +class Granted < Formula + desc "Easiest way to access your cloud" + homepage "https://granted.dev/" + url "https://github.com/fwdcloudsec/granted/archive/refs/tags/v0.38.0.tar.gz" + sha256 "b6e2bc8fda38f55ee4673cc0f3f762e076d2029df1d9a8552681a2aacce88721" + license "MIT" + head "https://github.com/fwdcloudsec/granted.git", branch: "main" + + depends_on "go" => :build + + def install + ENV["CGO_ENABLED"] = "0" if OS.linux? && Hardware::CPU.arm? + + ldflags = "-s -w -X github.com/common-fate/granted/internal/build.Version=#{version}" + system "go", "build", *std_go_args(ldflags:), "./cmd/granted" + end + + test do + assert_match version.to_s, shell_output("#{bin}/granted --version") + + output = shell_output("#{bin}/granted auth configure 2>&1", 1) + assert_match "[✘] please provide a url argument", output + end +end From c75d51a29a05f8cdce1593f2221b4b4020fa85dd Mon Sep 17 00:00:00 2001 From: Anton Melnikov Date: Wed, 8 Oct 2025 06:48:17 +0000 Subject: [PATCH 2/2] granted: add 0.38.0 bottle. --- Formula/g/granted.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Formula/g/granted.rb b/Formula/g/granted.rb index 990addc347637..01e9df66430e3 100644 --- a/Formula/g/granted.rb +++ b/Formula/g/granted.rb @@ -6,6 +6,14 @@ class Granted < Formula license "MIT" head "https://github.com/fwdcloudsec/granted.git", branch: "main" + bottle do + sha256 cellar: :any_skip_relocation, arm64_tahoe: "905d6f692d85563eca73585449c2936f5086ce5cc1cc1e101a3bcd71ecf1e8f0" + sha256 cellar: :any_skip_relocation, arm64_sequoia: "826f554acd21683c694d7b3ab363aee7a5339b9f488c8672b723494557dda323" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "4d6a65dc8bcb372ebbbdaee1ce5d47f14adec08b67b2ff8d6a6c28da6d29e8ad" + sha256 cellar: :any_skip_relocation, sonoma: "2082c978cba759a2f55bcaa9e1afe102dc6bd03687deba376b075b043158358a" + sha256 cellar: :any_skip_relocation, x86_64_linux: "bf9dfb7396fd9de587fabb3b7fa0246efdf9155a5c2ed32cf5ec2fab0d27848c" + end + depends_on "go" => :build def install