File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-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+ 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
You can’t perform that action at this time.
0 commit comments