Skip to content

Commit

Permalink
Brew formula update for spicedb version v1.39.1
Browse files Browse the repository at this point in the history
  • Loading branch information
authzedbot committed Dec 12, 2024
1 parent 9cc02e1 commit c50c587
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 SpicedbAT1391 < Formula
desc "Google Zanzibar-inspired permissions database for fine-grained access control"
homepage "https://github.com/authzed/spicedb"
version "1.39.1"
license "Apache-2.0"

depends_on "go" => :build

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

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.39.1/spicedb_1.39.1_darwin_arm64.tar.gz"
sha256 "9692dbdd50d24dacad3a3b4461458125ca04995b19930d2141c532fa4b8650a7"

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.39.1/spicedb_1.39.1_linux_amd64.tar.gz"
sha256 "6cb16ab3fd496ce9fb78728da4dcb30dbac93c6f54ffcd0b39b19bbe7de88438"

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.39.1/spicedb_1.39.1_linux_arm64.tar.gz"
sha256 "1b0f6e7d8257f44d08fb4a1f1e47bfd27c742c4f3cad36f0e11a4ae86913cfcc"

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 c50c587

Please sign in to comment.