Skip to content
Merged

proto #4540

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
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ build: install build-go build-web ## Build all artifacts

.PHONY: generate
generate: generate-sql ## Generate code from protobuf and other sources
rm -rf ./gen || true
rm ./pkg/db/*_generated.go || true
go tool buf generate --template ./buf.gen.connect.yaml --clean --path "./proto/ctrl" --path "./proto/krane" --path "./proto/vault" --path "./proto/cache" --path "./proto/gateway"
go tool buf generate --template ./buf.gen.restate.yaml --path "./proto/hydra"
go generate ./...
go fmt ./...
pnpm --dir=web fmt
Expand Down
14 changes: 0 additions & 14 deletions buf.gen.connect.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions buf.gen.restate.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions buf.gen.yaml

This file was deleted.

18 changes: 9 additions & 9 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@

version: v2

modules:
- path: svc/ctrl/proto
- path: svc/krane/proto
- path: proto

deps:
- buf.build/googleapis/googleapis
- buf.build/restatedev/sdk-go
lint:
use:
- STANDARD
except:
- PACKAGE_DIRECTORY_MATCH

breaking:
use:
- PACKAGE
- FILE
- WIRE
- WIRE_JSON
- FIELD_NO_DELETE
- FIELD_NO_DELETE_UNLESS_NAME_RESERVED
- FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED
deps:
- buf.build/restatedev/sdk-go
3 changes: 1 addition & 2 deletions gen/proto/ctrl/v1/acme.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

280 changes: 0 additions & 280 deletions gen/proto/vault/v1/vaultv1connect/service.connect.go

This file was deleted.

9 changes: 9 additions & 0 deletions proto/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: v2
managed:
enabled: true
plugins:
- remote: buf.build/protocolbuffers/go:v1.36.8
out: ../gen/proto
opt:
- paths=import
- module=github.com/unkeyed/unkey/gen/proto
3 changes: 3 additions & 0 deletions proto/generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package proto

//go:generate go tool buf generate
3 changes: 0 additions & 3 deletions svc/ctrl/.gitignore

This file was deleted.

Loading
Loading