From 38eb74d5f47ad52651450bd998e11d5302ed3a79 Mon Sep 17 00:00:00 2001 From: authzedbot Date: Thu, 22 Aug 2024 17:49:48 +0200 Subject: [PATCH] Brew formula update for spicedb version v1.35.3 --- Formula/spicedb@1.35.3.rb | 84 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Formula/spicedb@1.35.3.rb diff --git a/Formula/spicedb@1.35.3.rb b/Formula/spicedb@1.35.3.rb new file mode 100644 index 0000000..e84aee9 --- /dev/null +++ b/Formula/spicedb@1.35.3.rb @@ -0,0 +1,84 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class SpicedbAT1353 < Formula + desc "Google Zanzibar-inspired permissions database for fine-grained access control" + homepage "https://github.com/authzed/spicedb" + version "1.35.3" + license "Apache-2.0" + + depends_on "go" => :build + + on_macos do + on_intel do + url "https://github.com/authzed/spicedb/releases/download/v1.35.3/spicedb_1.35.3_darwin_amd64.tar.gz" + sha256 "22fd245b8e59069ac70a073cc1922d6712998da66c75d40efb289b8672a108c5" + + def install + if build.head? + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" + end + bin.install "spicedb" + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) + end + end + on_arm do + url "https://github.com/authzed/spicedb/releases/download/v1.35.3/spicedb_1.35.3_darwin_arm64.tar.gz" + sha256 "2746d7924dedf84c0c53bfe1d41c5a7470aef2957f655677266f8f3ce3ce0e37" + + def install + if build.head? + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" + end + bin.install "spicedb" + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) + end + end + end + + on_linux do + on_intel do + if Hardware::CPU.is_64_bit? + url "https://github.com/authzed/spicedb/releases/download/v1.35.3/spicedb_1.35.3_linux_amd64.tar.gz" + sha256 "294be8406bd50f8870f4b95f7bd423bff8c933c3c971aaa859b4185f0a4c46d7" + + def install + if build.head? + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" + end + bin.install "spicedb" + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) + end + end + end + on_arm do + if Hardware::CPU.is_64_bit? + url "https://github.com/authzed/spicedb/releases/download/v1.35.3/spicedb_1.35.3_linux_arm64.tar.gz" + sha256 "b15975b7688b683682e568f803a753ad6152f83d71c2affb1f9480e68dae43af" + + def install + if build.head? + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" + end + bin.install "spicedb" + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) + end + end + end + end + + head "https://github.com/authzed/spicedb.git", :branch => "main" + + test do + system "#{bin}/spicedb version" + end +end