From 5a0cdd98c52623272d34b214c45b0777a2bb85e3 Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Tue, 27 Aug 2024 18:54:24 +0200 Subject: [PATCH] Change makefile --- Makefile | 4 ++-- .../coordinatorproto/coordinator.pb.go | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f18290f3..a4b95133 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ all: @set -e; @git config core.hooksPath .githooks; -proto: proto-execute replace-strings +proto: proto-execute replace-gogo-strings proto-execute: @echo 'Generating protobuf packages (Go)...' @@ -40,6 +40,6 @@ deps: test: go test ./... --cover -replace-strings: +replace-gogo-strings: @echo "Replacing 'github.com/gogo/protobuf' with 'github.com/anyproto/protobuf' in all files recursively..." LC_CTYPE=C LANG=C find . -type f -name "*.go" | xargs sed -i '' "s|github.com/gogo/protobuf|github.com/anyproto/protobuf|g" diff --git a/coordinator/coordinatorproto/coordinator.pb.go b/coordinator/coordinatorproto/coordinator.pb.go index 5683da21..681110e2 100644 --- a/coordinator/coordinatorproto/coordinator.pb.go +++ b/coordinator/coordinatorproto/coordinator.pb.go @@ -2701,6 +2701,14 @@ func (m *AclEventLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } +func (m *AclEventLogRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) { + b = b[:newLen] + _, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b, nil +} func (m *AclEventLogRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AclEventLogRequest.Merge(m, src) } @@ -2762,6 +2770,14 @@ func (m *AclEventLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } +func (m *AclEventLogResponse) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) { + b = b[:newLen] + _, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b, nil +} func (m *AclEventLogResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_AclEventLogResponse.Merge(m, src) } @@ -2822,6 +2838,14 @@ func (m *AclEventLogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } +func (m *AclEventLogRecord) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) { + b = b[:newLen] + _, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b, nil +} func (m *AclEventLogRecord) XXX_Merge(src proto.Message) { xxx_messageInfo_AclEventLogRecord.Merge(m, src) }