Skip to content

Commit

Permalink
Brew formula update for spicedb version v1.35.2
Browse files Browse the repository at this point in the history
  • Loading branch information
authzedbot committed Aug 7, 2024
1 parent 02f9f50 commit 0a4e531
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class SpicedbAT1352 < Formula
desc "Google Zanzibar-inspired permissions database for fine-grained access control"
homepage "https://github.com/authzed/spicedb"
version "1.35.2"
license "Apache-2.0"

depends_on "go" => :build

on_macos do
on_intel do
url "https://github.com/authzed/spicedb/releases/download/v1.35.2/spicedb_1.35.2_darwin_amd64.tar.gz"
sha256 "8031edffec47ef8b3e7b434d759c5b05809321afd9ab96c00fb31061fba04344"

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.2/spicedb_1.35.2_darwin_arm64.tar.gz"
sha256 "3edaba823d6f65689dfcfcb999ce8f0737e8af04218d5e5ab99010c45d35b8f9"

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.2/spicedb_1.35.2_linux_amd64.tar.gz"
sha256 "18d1ecef9305f566f7e438dd0963d6e803e1826947711be9558fd2e40c9fc0c8"

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.2/spicedb_1.35.2_linux_arm64.tar.gz"
sha256 "e77c605a26e22e609fb4a672ac9e0f3b5629a8017fd200184c8a4e40c5549781"

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

0 comments on commit 0a4e531

Please sign in to comment.