mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-26 19:51:17 +00:00
chore: migrate buf configs
fix versioning for Buf dependencies
This commit is contained in:
17
buf.gen.yaml
17
buf.gen.yaml
@@ -1,23 +1,26 @@
|
||||
version: v1
|
||||
version: v2
|
||||
plugins:
|
||||
- plugin: buf.build/protocolbuffers/go:v1.31.0
|
||||
- remote: buf.build/protocolbuffers/go:v1.31.0
|
||||
out: internal/pkg/protogen
|
||||
opt:
|
||||
- paths=import
|
||||
- module=github.com/hexolan/stocklet/internal/pkg/protogen
|
||||
- plugin: buf.build/grpc/go:v1.3.0
|
||||
- remote: buf.build/grpc/go:v1.3.0
|
||||
out: internal/pkg/protogen
|
||||
opt:
|
||||
- paths=import
|
||||
- module=github.com/hexolan/stocklet/internal/pkg/protogen
|
||||
- plugin: buf.build/grpc-ecosystem/gateway:v2.18.0
|
||||
- remote: buf.build/grpc-ecosystem/gateway:v2.18.0
|
||||
out: internal/pkg/protogen
|
||||
opt:
|
||||
opt:
|
||||
- paths=import
|
||||
- module=github.com/hexolan/stocklet/internal/pkg/protogen
|
||||
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.18.0
|
||||
- remote: buf.build/grpc-ecosystem/openapiv2:v2.18.0
|
||||
out: schema/openapi
|
||||
opt:
|
||||
- output_format=yaml
|
||||
- allow_merge=true
|
||||
- merge_file_name=services
|
||||
- merge_file_name=services
|
||||
|
||||
inputs:
|
||||
- directory: schema/protobufs
|
||||
Reference in New Issue
Block a user