From df536e3529b3ff7a7afa5a3e43cd518d97686128 Mon Sep 17 00:00:00 2001 From: "daprweb@microsoft.com" Date: Thu, 11 Feb 2021 03:12:33 +0000 Subject: [PATCH] Updating dapr-cli@1.0.0-rc.5 formula for version 1.0.0-rc.5 skip-checks: true --- dapr-cli@1.0.0-rc.5.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dapr-cli@1.0.0-rc.5.rb diff --git a/dapr-cli@1.0.0-rc.5.rb b/dapr-cli@1.0.0-rc.5.rb new file mode 100644 index 0000000..c7f01d1 --- /dev/null +++ b/dapr-cli@1.0.0-rc.5.rb @@ -0,0 +1,30 @@ +# ------------------------------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------------------------------ + +class DaprCliAT100Rc5 < Formula + desc "Client for Dapr." + homepage "https://dapr.io" + version '1.0.0-rc.5' + url "https://github.com/dapr/cli/archive/v1.0.0-rc.5.tar.gz" + sha256 "8b0bb2a0a9c49b720563c28b477803ff06547d6d3dd105d5c5801ad1377207e8" + + depends_on "go" => :build + + bottle do + root_url "https://github.com/dapr/homebrew-tap/releases/download/v1.0.0-rc.5" + cellar :any_skip_relocation + sha256 "8d7b70d4335ed6718ec6156219f7fba1e366a6abc99ecf62860b9e5a37c60a03" => :catalina + end + + def install + system "go", "build", "-ldflags", "-X main.version=#{version} -X main.apiVersion=1.0", "-o", "./cli" + bin.install "cli" => "dapr" + end + + test do + system "#{bin}/dapr", "--version" + end +end +