1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Change makefile

This commit is contained in:
mcrakhman 2024-08-27 18:54:24 +02:00
parent 3fec782d97
commit 5a0cdd98c5
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
2 changed files with 26 additions and 2 deletions

View file

@ -6,7 +6,7 @@ all:
@set -e; @set -e;
@git config core.hooksPath .githooks; @git config core.hooksPath .githooks;
proto: proto-execute replace-strings proto: proto-execute replace-gogo-strings
proto-execute: proto-execute:
@echo 'Generating protobuf packages (Go)...' @echo 'Generating protobuf packages (Go)...'
@ -40,6 +40,6 @@ deps:
test: test:
go test ./... --cover go test ./... --cover
replace-strings: replace-gogo-strings:
@echo "Replacing 'github.com/gogo/protobuf' with 'github.com/anyproto/protobuf' in all files recursively..." @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" LC_CTYPE=C LANG=C find . -type f -name "*.go" | xargs sed -i '' "s|github.com/gogo/protobuf|github.com/anyproto/protobuf|g"

View file

@ -2701,6 +2701,14 @@ func (m *AclEventLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil 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) { func (m *AclEventLogRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AclEventLogRequest.Merge(m, src) xxx_messageInfo_AclEventLogRequest.Merge(m, src)
} }
@ -2762,6 +2770,14 @@ func (m *AclEventLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil 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) { func (m *AclEventLogResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AclEventLogResponse.Merge(m, src) 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 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) { func (m *AclEventLogRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_AclEventLogRecord.Merge(m, src) xxx_messageInfo_AclEventLogRecord.Merge(m, src)
} }