mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-04 18:08:50 +00:00
chore(build): enhance proto caching and install binary plugins for improved performance, remove reliance on BSR (#11634)
This commit is contained in:
@@ -12,6 +12,7 @@ The **API App** (`apps/api`) is the Nx application target for building and runni
|
||||
- **Run API (prod profile)**: `pnpm nx run @zitadel/api:prod`
|
||||
- **Build**: `pnpm nx run @zitadel/api:build`
|
||||
- **Generate (all)**: `pnpm nx run @zitadel/api:generate`
|
||||
- **Install Proto Plugins**: `pnpm nx run @zitadel/api:generate-install` — installs all Go-based proto plugins (`buf`, `protoc-gen-go`, `protoc-gen-connect-go`, `protoc-gen-openapiv2`, `protoc-gen-validate`, `protoc-gen-authoption`, etc.) to `.artifacts/bin/$(GOOS)/$(GOARCH)/`. Output is Nx-cached; only reruns when plugin versions or local protoc sources change.
|
||||
- **Lint**: `pnpm nx run @zitadel/api:lint`
|
||||
- **Test (all)**: `pnpm nx run @zitadel/api:test`
|
||||
- **Test (unit)**: `pnpm nx run @zitadel/api:test-unit`
|
||||
@@ -20,3 +21,4 @@ The **API App** (`apps/api`) is the Nx application target for building and runni
|
||||
## Generation Notes
|
||||
- `@zitadel/api:generate` can update generated, tracked files (stubs/assets/statik). Run it intentionally.
|
||||
- API changes in `proto/` often require regenerating API, package, and docs artifacts.
|
||||
- Proto plugins are installed to `.artifacts/bin/` — do not commit these binaries; they are declared as Nx outputs and restored from cache.
|
||||
|
||||
@@ -261,7 +261,6 @@
|
||||
"GOBIN=${PWD}/.artifacts/bin/$(go env GOOS)/$(go env GOARCH) go install github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]",
|
||||
"GOBIN=${PWD}/.artifacts/bin/$(go env GOOS)/$(go env GOARCH) go install github.com/envoyproxy/[email protected]",
|
||||
"GOBIN=${PWD}/.artifacts/bin/$(go env GOOS)/$(go env GOARCH) go install connectrpc.com/connect/cmd/[email protected]",
|
||||
"GOBIN=${PWD}/.artifacts/bin/$(go env GOOS)/$(go env GOARCH) go install google.golang.org/protobuf/cmd/[email protected]",
|
||||
"GOBIN=${PWD}/.artifacts/bin/$(go env GOOS)/$(go env GOARCH) go install ./internal/protoc/protoc-gen-authoption",
|
||||
"GOBIN=${PWD}/.artifacts/bin/$(go env GOOS)/$(go env GOARCH) go install ./internal/protoc/protoc-gen-zitadel"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user