diff --git a/buf.gen.yaml b/buf.gen.yaml index 8f9abd5..b8c5fe5 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -17,5 +17,3 @@ plugins: - remote: buf.build/grpc/go:v1.3.0 out: internal/gen opt: paths=source_relative -inputs: - - directory: internal/proto diff --git a/buf.yaml b/buf.yaml index 26a37e9..c78138c 100644 --- a/buf.yaml +++ b/buf.yaml @@ -1,5 +1,6 @@ version: v2 modules: + - path: internal/proto - path: internal/examples/pets/internal/proto lint: use: @@ -15,27 +16,17 @@ modules: - RPC_RESPONSE_STANDARD_NAME rpc_allow_google_protobuf_empty_responses: true disallow_comment_ignores: true - breaking: - use: - - WIRE_JSON - except: - - FIELD_SAME_DEFAULT - - path: internal/proto - lint: - use: - - DEFAULT - except: - - FIELD_NOT_REQUIRED - - PACKAGE_NO_IMPORT_CYCLE - - RPC_REQUEST_RESPONSE_UNIQUE - - RPC_REQUEST_STANDARD_NAME - - RPC_RESPONSE_STANDARD_NAME - rpc_allow_google_protobuf_empty_responses: true - disallow_comment_ignores: true - breaking: - use: - - WIRE_JSON - except: - - FIELD_SAME_DEFAULT deps: - buf.build/googleapis/googleapis +lint: + use: + - DEFAULT + except: + - FIELD_NOT_REQUIRED + - PACKAGE_NO_IMPORT_CYCLE + - RPC_REQUEST_RESPONSE_UNIQUE + - RPC_REQUEST_STANDARD_NAME + - RPC_RESPONSE_STANDARD_NAME +breaking: + use: + - WIRE_JSON