Skip to content

Commit faf2bb4

Browse files
committed
granted 0.38.0 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent 71d8b89 commit faf2bb4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Formula/g/granted.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
class Granted < Formula
2+
desc "Easiest way to access your cloud"
3+
homepage "https://granted.dev/"
4+
url "https://github.com/fwdcloudsec/granted/archive/refs/tags/v0.38.0.tar.gz"
5+
sha256 "b6e2bc8fda38f55ee4673cc0f3f762e076d2029df1d9a8552681a2aacce88721"
6+
license "MIT"
7+
head "https://github.com/fwdcloudsec/granted.git", branch: "main"
8+
9+
depends_on "go" => :build
10+
11+
def install
12+
ENV["CGO_ENABLED"] = "0" if OS.linux? && Hardware::CPU.arm?
13+
14+
ldflags = "-s -w -X github.com/common-fate/granted/internal/build.Version=#{version}"
15+
system "go", "build", *std_go_args(ldflags:), "./cmd/granted"
16+
end
17+
18+
test do
19+
assert_match version.to_s, shell_output("#{bin}/granted --version")
20+
21+
output = shell_output("#{bin}/granted auth configure 2>&1", 1)
22+
assert_match "[✘] please provide a url argument", output
23+
end
24+
end

0 commit comments

Comments
 (0)