File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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+ bottle do
10+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "905d6f692d85563eca73585449c2936f5086ce5cc1cc1e101a3bcd71ecf1e8f0"
11+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "826f554acd21683c694d7b3ab363aee7a5339b9f488c8672b723494557dda323"
12+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "4d6a65dc8bcb372ebbbdaee1ce5d47f14adec08b67b2ff8d6a6c28da6d29e8ad"
13+ sha256 cellar : :any_skip_relocation , sonoma : "2082c978cba759a2f55bcaa9e1afe102dc6bd03687deba376b075b043158358a"
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "bf9dfb7396fd9de587fabb3b7fa0246efdf9155a5c2ed32cf5ec2fab0d27848c"
15+ end
16+
17+ depends_on "go" => :build
18+
19+ def install
20+ ENV [ "CGO_ENABLED" ] = "0" if OS . linux? && Hardware ::CPU . arm?
21+
22+ ldflags = "-s -w -X github.com/common-fate/granted/internal/build.Version=#{ version } "
23+ system "go" , "build" , *std_go_args ( ldflags :) , "./cmd/granted"
24+ end
25+
26+ test do
27+ assert_match version . to_s , shell_output ( "#{ bin } /granted --version" )
28+
29+ output = shell_output ( "#{ bin } /granted auth configure 2>&1" , 1 )
30+ assert_match "[✘] please provide a url argument" , output
31+ end
32+ end
You can’t perform that action at this time.
0 commit comments