Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.25.7'
go-version: '1.26.8'

- name: tests
run: make test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ~1.25.7
go-version: ~1.26.8
- name: Log in to GHCR
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ~1.25.7
go-version: ~1.26.8
- name: Log in to GHCR
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
with:
Expand Down
64 changes: 38 additions & 26 deletions buf.gen.yaml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,40 +1,52 @@
#!/usr/bin/env -S buf generate --template
---
version: v1
version: v2
inputs:
- directory: proto
managed:
enabled: true
go_package_prefix:
default: github.com/Permify/permify/pkg/pb
except:
- buf.build/googleapis/googleapis
- buf.build/envoyproxy/protoc-gen-validate
- buf.build/grpc-ecosystem/grpc-gateway
disable:
- file_option: go_package
module: buf.build/googleapis/googleapis
- file_option: go_package
module: buf.build/grpc-ecosystem/grpc-gateway
- file_option: go_package
module: buf.build/bufbuild/protovalidate
override:
- file_option: go_package_prefix
value: github.com/Permify/permify/pkg/pb
plugins:
- name: go
path: ["go", "run", "google.golang.org/protobuf/cmd/protoc-gen-go"]
- local:
- go
- run
- google.golang.org/protobuf/cmd/protoc-gen-go
out: pkg/pb
opt: paths=source_relative
- name: go-grpc
path: ["go", "run", "google.golang.org/grpc/cmd/protoc-gen-go-grpc"]
- local:
- go
- run
- google.golang.org/grpc/cmd/protoc-gen-go-grpc
out: pkg/pb
opt: paths=source_relative
- name: go-vtproto
path: ["go", "run", "github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto"]
- local:
- go
- run
- github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto
out: pkg/pb
opt: paths=source_relative,features=marshal+unmarshal+size+clone+pool+equal
- name: validate
path: ["go", "run", "github.com/envoyproxy/protoc-gen-validate"]
out: pkg/pb
opt: paths=source_relative,lang=go
- name: grpc-gateway
path: ["go", "run", "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway"]
- local:
- go
- run
- github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
out: pkg/pb
opt: paths=source_relative
- name: openapiv2
path: ["go", "run", "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"]
- local:
- go
- run
- github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
out: docs/api-reference
opt: openapi_naming_strategy=simple,allow_merge=true
- name: openapiv2
path: ["go", "run", "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"]
- local:
- go
- run
- github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
out: docs/api-reference/openapiv2
opt: omit_enum_default_value=true,openapi_naming_strategy=simple,allow_merge=true
opt: omit_enum_default_value=true,openapi_naming_strategy=simple,allow_merge=true
4 changes: 0 additions & 4 deletions buf.work.yaml

This file was deleted.

25 changes: 11 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
module github.com/Permify/permify

go 1.25.7
go 1.26.0

tool (
github.com/bufbuild/buf/cmd/buf
github.com/envoyproxy/protoc-gen-validate
github.com/golangci/golangci-lint/v2/cmd/golangci-lint
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
Expand All @@ -23,7 +22,6 @@ require (
github.com/cespare/xxhash/v2 v2.3.0
github.com/dgraph-io/ristretto v1.0.0
github.com/dustin/go-humanize v1.0.1
github.com/envoyproxy/protoc-gen-validate v1.3.3
github.com/exaring/otelpgx v0.10.0
github.com/fatih/color v1.19.0
github.com/go-jose/go-jose/v3 v3.0.5
Expand Down Expand Up @@ -70,12 +68,12 @@ require (
go.opentelemetry.io/otel/sdk v1.46.0
go.opentelemetry.io/otel/sdk/metric v1.46.0
go.opentelemetry.io/otel/trace v1.46.0
golang.org/x/exp v0.0.0-20251002181428-27f1f14c8bb9
golang.org/x/exp v0.0.0-20260820142414-ca536658362e
golang.org/x/net v0.58.0 // indirect
golang.org/x/sync v0.22.0
google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa
google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688
google.golang.org/grpc v1.83.2
google.golang.org/protobuf v1.36.11
google.golang.org/protobuf v1.36.12
resenje.org/singleflight v0.4.3
)

Expand All @@ -84,18 +82,18 @@ require (
4d63.com/gocheckcompilerdirectives v1.3.0 // indirect
4d63.com/gochecknoglobals v0.2.2 // indirect
buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.36.10-20250718181942-e35f9b667443.1 // indirect
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.10-20250717185734-6c6e0d3c608e.1 // indirect
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.1
buf.build/gen/go/bufbuild/registry/connectrpc/go v1.19.0-20250924144421-cb55f06efbd2.1 // indirect
buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.36.10-20250924144421-cb55f06efbd2.1 // indirect
buf.build/gen/go/pluginrpc/pluginrpc/protocolbuffers/go v1.36.9-20241007202033-cf42259fcbfc.1 // indirect
buf.build/go/app v0.1.0 // indirect
buf.build/go/bufplugin v0.9.0 // indirect
buf.build/go/interrupt v1.1.0 // indirect
buf.build/go/protovalidate v1.0.0 // indirect
buf.build/go/protovalidate v1.4.0
buf.build/go/protoyaml v0.6.0 // indirect
buf.build/go/spdx v0.2.0 // indirect
buf.build/go/standard v0.1.0 // indirect
cel.dev/expr v0.25.2 // indirect
cel.dev/expr v0.25.3 // indirect
cloud.google.com/go v0.123.0 // indirect
cloud.google.com/go/ai v0.12.1 // indirect
cloud.google.com/go/auth v0.18.2 // indirect
Expand Down Expand Up @@ -217,7 +215,6 @@ require (
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/jdx/go-netrc v1.0.0 // indirect
github.com/jgautheron/goconst v1.8.2 // indirect
github.com/jingyugao/rowserrcheck v1.1.1 // indirect
Expand All @@ -242,7 +239,6 @@ require (
github.com/lestrrat-go/iter v1.0.2 // indirect
github.com/lestrrat-go/option v1.0.1 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/lyft/protoc-gen-star/v2 v2.0.4 // indirect
github.com/macabu/inamedparam v0.2.0 // indirect
github.com/manuelarte/embeddedstructfieldcheck v0.4.0 // indirect
github.com/manuelarte/funcorder v0.5.0 // indirect
Expand Down Expand Up @@ -326,7 +322,7 @@ require (
go.uber.org/zap v1.27.0 // indirect
go.yaml.in/yaml/v3 v3.0.5
golang.org/x/exp/typeparams v0.0.0-20250911091902-df9299821621 // indirect
golang.org/x/mod v0.38.0 // indirect
golang.org/x/mod v0.39.0 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/term v0.45.0 // indirect
golang.org/x/time v0.14.0 // indirect
Expand Down Expand Up @@ -409,11 +405,12 @@ require (
golang.org/x/crypto v0.55.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.41.0 // indirect
golang.org/x/tools v0.48.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect
golang.org/x/tools v0.49.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260819154853-08b0e4226688 // indirect
)

require (
cel.dev/cel-go v0.32.0 // indirect
github.com/clipperhouse/displaywidth v0.10.0 // indirect
github.com/clipperhouse/uax29/v2 v2.6.0 // indirect
github.com/moby/moby/api v1.54.1 // indirect
Expand Down
Loading
Loading