Skip to content

Commit

Permalink
Brew formula update for spicedb version v1.38.0
Browse files Browse the repository at this point in the history
  • Loading branch information
authzedbot committed Nov 1, 2024
1 parent c05f006 commit 46866b1
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions Formula/spicedb@1.38.0.rb
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 SpicedbAT1380 < Formula
desc "Google Zanzibar-inspired permissions database for fine-grained access control"
homepage "https://github.com/authzed/spicedb"
version "1.38.0"
license "Apache-2.0"

depends_on "go" => :build

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

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.38.0/spicedb_1.38.0_darwin_arm64.tar.gz"
sha256 "4f18e519f969b982e13081ba34464b6bab0ea923a7344b643f8ee6078088a000"

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.38.0/spicedb_1.38.0_linux_amd64.tar.gz"
sha256 "5b4931c3003f9fe474f91d36b8c6b18495399b24ec7999539ccd354497563d42"

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.38.0/spicedb_1.38.0_linux_arm64.tar.gz"
sha256 "4050f5b7ac24b1bf9f31a37ae9d328916dcbc98f065e590f3e376c9f8e850e0c"

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 46866b1

Please sign in to comment.