From 8466d0b87b321074c74c9422affe573f1ecd5f82 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 31 May 2026 20:40:00 +0200 Subject: [PATCH] new(openfga): fine-grained authorization (Google Zanzibar-inspired) OpenFGA is a CNCF sandbox project providing a high-performance, flexible authorization/permission engine inspired by Google Zanzibar. Co-Authored-By: Claude Opus 4.7 --- .../github.com/openfga/openfga/package.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/github.com/openfga/openfga/package.yml diff --git a/projects/github.com/openfga/openfga/package.yml b/projects/github.com/openfga/openfga/package.yml new file mode 100644 index 0000000000..6d7befcdb5 --- /dev/null +++ b/projects/github.com/openfga/openfga/package.yml @@ -0,0 +1,36 @@ +distributable: + url: https://github.com/openfga/openfga/archive/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: openfga/openfga + +platforms: + - linux/x86-64 + - linux/aarch64 + - darwin/x86-64 + - darwin/aarch64 + +build: + dependencies: + go.dev: ^1.25 + script: + - go build $GO_ARGS -ldflags="$LD_FLAGS" ./cmd/openfga + env: + LD_FLAGS: + - -s -w + - -X github.com/openfga/openfga/internal/build.Version={{version}} + - -X github.com/openfga/openfga/internal/build.Commit=pkgx + - -X github.com/openfga/openfga/internal/build.Date=$(date -u +'%Y-%m-%dT%H:%M:%SZ') + linux: + LD_FLAGS: + - -buildmode=pie + GO_ARGS: + - -trimpath + - -o={{prefix}}/bin/openfga + +provides: + - bin/openfga + +test: + - openfga version 2>&1 | grep {{version}}