mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-26 06:46:29 +00:00
Fix: Pin buf protoc plugin versions to resolve runtime protobuf
compatibility issues
# Which Problems Are Solved
The console application was experiencing a runtime error "requireUtf8 is
not a function" when the authentication service attempted to deserialize
protobuf messages. This error started occurring recently due to
automatic updates of buf protoc plugins.
# How the Problems Are Solved
pinning of the versions in buf.gen.yml and package.json
(cherry picked from commit cf02c4231a)
14 lines
404 B
YAML
14 lines
404 B
YAML
# buf.gen.yaml
|
|
version: v1
|
|
managed:
|
|
enabled: true
|
|
plugins:
|
|
- plugin: buf.build/protocolbuffers/js:v3.21.4
|
|
out: src/app/proto/generated
|
|
opt: import_style=commonjs,binary
|
|
- plugin: buf.build/grpc/web:v1.5.0
|
|
out: src/app/proto/generated
|
|
opt: import_style=typescript,mode=grpcweb
|
|
- plugin: buf.build/grpc-ecosystem/openapiv2
|
|
out: src/app/proto/generated
|
|
opt: allow_delete_body |