daml/sdk/buf-ledger-api.yaml
Gary Verhaegen f752c518e1
[3.1] fix protobuf check (#19046)
Now that 2.8.4 is published, the branch we compare with is in a subdir
and the script needs to deal with that.
2024-04-19 13:32:12 +02:00

30 lines
1.1 KiB
YAML

# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
version: v1beta1
build:
roots:
- sdk/canton/community/ledger-api/src/main/protobuf
- sdk/3rdparty/protobuf
excludes:
- sdk/canton/community/ledger-api/src/main/protobuf/com/daml/ledger/api/scalapb
breaking:
use:
- FILE
# Generated source code breaking changes on a per-file basis, that is changes that would
# break the generated stubs where definitions cannot be moved across files.
# This category also verifies wire and JSON compatibility.
#
# We rely in particular on fields not getting renamed in `UpdateXXX` calls that use a `FieldMask`
# to select the fields to update, see https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto
ignore_only:
FIELD_NO_DELETE:
- com/daml/ledger/api/v1/commands.proto
- com/daml/ledger/api/v1/event.proto
- com/daml/ledger/api/v1/transaction_filter.proto
ONEOF_NO_DELETE:
- com/daml/ledger/api/v1/commands.proto