-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brew formula update for spicedb version v1.37.2
- Loading branch information
1 parent
60f01ad
commit 378904d
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 SpicedbAT1372 < Formula | ||
desc "Google Zanzibar-inspired permissions database for fine-grained access control" | ||
homepage "https://github.com/authzed/spicedb" | ||
version "1.37.2" | ||
license "Apache-2.0" | ||
|
||
depends_on "go" => :build | ||
|
||
on_macos do | ||
on_intel do | ||
url "https://github.com/authzed/spicedb/releases/download/v1.37.2/spicedb_1.37.2_darwin_amd64.tar.gz" | ||
sha256 "eb563c47cb908d5c135d53c78a0338017e459dbfba143782f150b9e57e206e48" | ||
|
||
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.37.2/spicedb_1.37.2_darwin_arm64.tar.gz" | ||
sha256 "bbbb9514a5e2464f0e3aa22956d18ebd1f69a3c4ccd48ec399f9ee904ed26410" | ||
|
||
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.37.2/spicedb_1.37.2_linux_amd64.tar.gz" | ||
sha256 "5b5a1f78ab7092f9860216baf4ca4b4894731a39ec84a87b368beea04a967414" | ||
|
||
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.37.2/spicedb_1.37.2_linux_arm64.tar.gz" | ||
sha256 "58d0b3a5e7df06e881a5cd0c76267c27447aa6bad122b8f31c31b8e1dd158b40" | ||
|
||
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 |