Skip to content

Commit edf4485

Browse files
Updating [email protected] formula for version 1.0.0-rc.2
skip-checks: true
1 parent f1d40cc commit edf4485

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

[email protected]

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
# ------------------------------------------------------------
5+
6+
class DaprCliAT100Rc2 < Formula
7+
desc "Client for Dapr."
8+
homepage "https://dapr.io"
9+
version '1.0.0-rc.2'
10+
url "https://github.com/dapr/cli/archive/v1.0.0-rc.2.tar.gz"
11+
sha256 "d0936abcd283ab0cf145efbfe7d5cf523c0d5f334748a0c120b82918015058d2"
12+
13+
depends_on "go" => :build
14+
15+
bottle do
16+
root_url "https://github.com/dapr/homebrew-tap/releases/download/v1.0.0-rc.2"
17+
cellar :any_skip_relocation
18+
sha256 "7112c0cc55c0d99724fe062148b1869223c61fdee5f140441cd7312f2c0f5520" => :catalina
19+
end
20+
21+
def install
22+
system "go", "build", "-ldflags", "-X main.version=#{version} -X main.apiVersion=1.0", "-o", "./cli"
23+
bin.install "cli" => "dapr"
24+
end
25+
26+
test do
27+
system "#{bin}/dapr", "--version"
28+
end
29+
end
30+

0 commit comments

Comments
 (0)